exclude excluded canditates from search result candidates

This commit is contained in:
ad hoc 2022-04-09 14:30:00 +02:00 committed by Clémentine Urquizar
parent cd83014fff
commit dda28d7415
No known key found for this signature in database
GPG Key ID: D8E7CC7422E77E1A

View File

@ -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,
})
}
}