mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
Update milli/src/search/query_tree.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
36715f571c
commit
f4cab080a6
@ -67,7 +67,7 @@ impl Operation {
|
|||||||
|
|
||||||
fn phrase(mut words: Vec<String>) -> Self {
|
fn phrase(mut words: Vec<String>) -> Self {
|
||||||
if words.len() == 1 {
|
if words.len() == 1 {
|
||||||
Self::Query(Query {prefix: false, kind: QueryKind::exact(words.pop().unwrap())})
|
Self::Query(Query { prefix: false, kind: QueryKind::exact(words.pop().unwrap()) })
|
||||||
} else {
|
} else {
|
||||||
Self::Phrase(words)
|
Self::Phrase(words)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user