mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08:00
Remove the found documents from the candidates list
This commit is contained in:
parent
50169b9798
commit
1c7a9a4132
@ -242,6 +242,11 @@ impl Index {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We achieve to find valid documents ids so we remove them from the candidate list.
|
||||||
|
for (_, docids) in &mut words_attributes_docids {
|
||||||
|
docids.difference_with(&same_proximity_union);
|
||||||
|
}
|
||||||
|
|
||||||
documents.push(same_proximity_union);
|
documents.push(same_proximity_union);
|
||||||
|
|
||||||
// We remove the double occurences of documents.
|
// We remove the double occurences of documents.
|
||||||
|
Loading…
Reference in New Issue
Block a user