mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 08:48:32 +08:00
Skip all derived words when too short
This commit is contained in:
parent
736f0f7560
commit
63cbeca64e
@ -87,7 +87,7 @@ impl Index {
|
|||||||
let number_of_words = words.len();
|
let number_of_words = words.len();
|
||||||
let dfas = words.into_iter().enumerate().map(|(i, word)| {
|
let dfas = words.into_iter().enumerate().map(|(i, word)| {
|
||||||
let (word, quoted) = match word {
|
let (word, quoted) = match word {
|
||||||
QueryToken::Free(word) => (word.cow_to_lowercase(), false),
|
QueryToken::Free(word) => (word.cow_to_lowercase(), word.len() <= 3),
|
||||||
QueryToken::Quoted(word) => (Cow::Borrowed(word), true),
|
QueryToken::Quoted(word) => (Cow::Borrowed(word), true),
|
||||||
};
|
};
|
||||||
let is_last = i + 1 == number_of_words;
|
let is_last = i + 1 == number_of_words;
|
||||||
|
Loading…
Reference in New Issue
Block a user