Reintroduce the distinct search system

This commit is contained in:
Clément Renault 2020-01-16 15:55:55 +01:00
parent 74fa9ee4df
commit 96139da0d2
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
6 changed files with 275 additions and 565 deletions

View file

@ -1,13 +1,8 @@
mod dfa;
mod query_enhancer;
use meilisearch_tokenizer::is_cjk;
pub use self::dfa::{build_dfa, build_prefix_dfa, build_exact_dfa};
pub use self::query_enhancer::QueryEnhancer;
pub use self::query_enhancer::QueryEnhancerBuilder;
pub const NGRAMS: usize = 3;
pub fn normalize_str(string: &str) -> String {
let mut string = string.to_lowercase();