Module fuzzy

Module fuzzy 

Source
Expand description

§Fuzzy Search Module

Provides fuzzy search capabilities with typo tolerance using Tantivy.

§Key Components

§Example

let storage = CacheStorage::new(None)?;
let indexer = SearchIndexer::new_for_crate("tokio", "1.35.0", &storage, None)?;
let searcher = FuzzySearcher::from_indexer(&indexer)?;
let options = FuzzySearchOptions {
    fuzzy_enabled: true,
    fuzzy_distance: 1,
    ..Default::default()
};
let results = searcher.search("Vec", &options)?;

Structs§

FuzzySearchOptions
FuzzySearcher
Fuzzy search implementation using Tantivy
SearchResult