-
-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Labels
Description
Hey, I'm trying to use fst with arabic, with levenshtein, and it seems to not work at all... The code I'm working with:
use fst::{automaton::Levenshtein, IntoStreamer, Map};
fn main() {
let mut data = vec![("مصر", 1)];
data.sort();
// A convenient way to create sets in memory.
let map = Map::from_iter(data)
.unwrap();
// Build our fuzzy query.
let lev = Levenshtein::new("مصر", 2).unwrap();
// Apply our fuzzy query to the set we built.
let stream = map.search(lev).into_stream();
let keys = stream.into_stream().into_str_keys().unwrap();
println!("keys: {keys:#?}");
}I've enabled the utf8-ranges and levenshtein features on the crate.
Reactions are currently unavailable