mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01: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, .. } => {
|
||||
if *prefix {
|
||||
word_derivations(word, true, 0, &words_positions)
|
||||
.flat_map(|positions| positions.iter().next()).min()
|
||||
.flat_map(|positions| positions.iter().next()).min()
|
||||
} else {
|
||||
words_positions.get(word)
|
||||
.map(|positions| positions.iter().next())
|
||||
|
Loading…
x
Reference in New Issue
Block a user