mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
exclude excluded canditates from search result candidates
This commit is contained in:
parent
cd83014fff
commit
dda28d7415
@ -243,9 +243,11 @@ impl<'a> Search<'a> {
|
||||
excluded_candidates = candidates.into_excluded();
|
||||
}
|
||||
|
||||
dbg!(excluded_candidates.len());
|
||||
|
||||
Ok(SearchResult { matching_words, candidates: initial_candidates, documents_ids })
|
||||
Ok(SearchResult {
|
||||
matching_words,
|
||||
candidates: initial_candidates - excluded_candidates,
|
||||
documents_ids,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user