Expand description
§Fuzzy Search Module
Provides fuzzy search capabilities with typo tolerance using Tantivy.
§Key Components
FuzzySearcher
- Main searcher with fuzzy and standard search modesFuzzySearchOptions
- Configuration for search behaviorSearchResult
- Structure containing search result information
§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§
- Fuzzy
Search Options - Fuzzy
Searcher - Fuzzy search implementation using Tantivy
- Search
Result