remove option on bucket_candidates

This commit is contained in:
many
2021-02-25 16:14:38 +01:00
committed by Kerollmops
parent 64688b3786
commit d92ad5640a
3 changed files with 17 additions and 19 deletions

View File

@ -100,9 +100,7 @@ impl<'a> Search<'a> {
let mut len = candidates.len() as usize;
let mut candidates = candidates.into_iter();
if let Some(docids) = bucket_candidates {
initial_candidates.union_with(&docids);
}
initial_candidates.union_with(&bucket_candidates);
if offset != 0 {
candidates.by_ref().skip(offset).for_each(drop);