mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-12-02 01:55:03 +08:00
Fix query tree building
This commit is contained in:
parent
bff9653050
commit
993aa1321c
@ -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 => {
|
||||||
@ -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.
|
/// Main function that matchings words used for crop and highlight.
|
||||||
|
Loading…
Reference in New Issue
Block a user