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,10 +298,12 @@ 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 {
|
||||||
let wc = ctx.word_position_docids(word, pos)?;
|
if let Some(word) = word {
|
||||||
if let Some(word_candidates) = wc {
|
let wc = ctx.word_position_docids(word, pos)?;
|
||||||
attribute_candidates_array.push(word_candidates);
|
if let Some(word_candidates) = wc {
|
||||||
|
attribute_candidates_array.push(word_candidates);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pos += 1;
|
pos += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user