mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
exact_attribute: dedup nodes after sorting them
This commit is contained in:
parent
130d2061bd
commit
618c54915d
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ impl State {
|
|||
}
|
||||
|
||||
exact_term_position_ids.sort_by_key(|(_, _, id)| *id);
|
||||
exact_term_position_ids.dedup_by_key(|(_, _, id)| *id);
|
||||
|
||||
// bail if there is a "hole" (missing word) in remaining query graph
|
||||
if let Some((_, _, first_id)) = exact_term_position_ids.first() {
|
||||
if *first_id != 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue