mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +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;
|
pos += 1;
|
||||||
}
|
}
|
||||||
Phrase(phrase) => {
|
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)?;
|
let wc = ctx.word_position_docids(word, pos)?;
|
||||||
if let Some(word_candidates) = wc {
|
if let Some(word_candidates) = wc {
|
||||||
attribute_candidates_array.push(word_candidates);
|
attribute_candidates_array.push(word_candidates);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
pos += 1;
|
pos += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user