mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
Increment position even when it's a stop word in exactness criteria
This commit is contained in:
parent
ef13c6a5b6
commit
709ab3c14c
@ -298,11 +298,13 @@ fn attribute_start_with_docids(
|
||||
pos += 1;
|
||||
}
|
||||
Phrase(phrase) => {
|
||||
for word in phrase.iter().filter_map(|w| w.as_ref()) {
|
||||
for word in phrase {
|
||||
if let Some(word) = word {
|
||||
let wc = ctx.word_position_docids(word, pos)?;
|
||||
if let Some(word_candidates) = wc {
|
||||
attribute_candidates_array.push(word_candidates);
|
||||
}
|
||||
}
|
||||
pos += 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user