Fix remove count

This commit is contained in:
ManyTheFish 2022-07-28 14:09:06 +02:00
parent 9640976c79
commit bff9653050

View File

@ -454,7 +454,7 @@ fn create_query_tree(
let mut operation_children = Vec::new(); let mut operation_children = Vec::new();
let mut query = query.to_vec(); let mut query = query.to_vec();
for _ in 0..remove_count { for _ in 0..=remove_count {
let pos = match optional_words { let pos = match optional_words {
TermsMatchingStrategy::All => return ngrams(ctx, authorize_typos, &query, false), TermsMatchingStrategy::All => return ngrams(ctx, authorize_typos, &query, false),
TermsMatchingStrategy::Any => { TermsMatchingStrategy::Any => {