mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-26 22:50:07 +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…
x
Reference in New Issue
Block a user