mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
exact_attribute: dedup nodes after sorting them
This commit is contained in:
parent
130d2061bd
commit
618c54915d
@ -113,6 +113,8 @@ impl State {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exact_term_position_ids.sort_by_key(|(_, _, id)| *id);
|
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
|
// bail if there is a "hole" (missing word) in remaining query graph
|
||||||
if let Some((_, _, first_id)) = exact_term_position_ids.first() {
|
if let Some((_, _, first_id)) = exact_term_position_ids.first() {
|
||||||
if *first_id != 0 {
|
if *first_id != 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user