Expand description
Fast fuzzy string scoring and top-k search.
The crate exposes a small scoring API that can score a single term or return borrowed top-k matches for a query. Matching is case-insensitive for ASCII text and uses Unicode case folding for non-ASCII queries, but it does not perform Unicode normalization or transliteration.
§Example
use fuzzy_search_lite::fuzzy_score::{fuzzy_matches, fuzzy_score};
let score = fuzzy_score("Workshop", "wo");
assert_eq!(score.score, 4);
let data = ["Workshop", "Room", "Apache Software Foundation"];
let results = fuzzy_matches(&data, "wo", 1);
assert_eq!(results[0].term, "Workshop");
assert_eq!(results[0].index, 0);Modules§
- fuzzy_
score - Fuzzy scoring primitives and top-k search over string slices. Fuzzy scoring and top-k ranking.