mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
Update milli/src/search/criteria/attribute.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
c862b1bc6b
commit
3b1358b62f
@ -554,7 +554,7 @@ fn linear_compute_candidates(
|
|||||||
QueryKind::Exact { word, .. } => {
|
QueryKind::Exact { word, .. } => {
|
||||||
if *prefix {
|
if *prefix {
|
||||||
word_derivations(word, true, 0, &words_positions)
|
word_derivations(word, true, 0, &words_positions)
|
||||||
.flat_map(|positions| positions.iter().next()).min()
|
.flat_map(|positions| positions.iter().next()).min()
|
||||||
} else {
|
} else {
|
||||||
words_positions.get(word)
|
words_positions.get(word)
|
||||||
.map(|positions| positions.iter().next())
|
.map(|positions| positions.iter().next())
|
||||||
|
Loading…
Reference in New Issue
Block a user