mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Fix query tree building
This commit is contained in:
parent
bff9653050
commit
993aa1321c
1 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ fn create_query_tree(
|
|||
|
||||
let mut operation_children = Vec::new();
|
||||
let mut query = query.to_vec();
|
||||
for _ in 0..=remove_count {
|
||||
for _ in 0..remove_count {
|
||||
let pos = match optional_words {
|
||||
TermsMatchingStrategy::All => return ngrams(ctx, authorize_typos, &query, false),
|
||||
TermsMatchingStrategy::Any => {
|
||||
|
@ -511,7 +511,7 @@ fn create_query_tree(
|
|||
};
|
||||
}
|
||||
|
||||
Ok(Operation::Or(true, operation_children))
|
||||
Ok(Operation::or(true, operation_children))
|
||||
}
|
||||
|
||||
/// Main function that matchings words used for crop and highlight.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue