mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08: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 {
|
||||
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 {
|
||||
Self::Phrase(words)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user