Skip to content

Commit

Permalink
add collect_block for MultiCollector
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed May 17, 2022
1 parent 9ca04b4 commit f5a9123
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/collector/multi_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ impl SegmentCollector for MultiCollectorChild {
Ok(())
}

fn collect_block(&mut self, docs: &[(DocId, Score)]) -> crate::Result<()> {
for child in &mut self.children {
child.collect_block(docs)?;
}
Ok(())
}

fn harvest(self) -> MultiFruit {
MultiFruit {
sub_fruits: self
Expand Down

0 comments on commit f5a9123

Please sign in to comment.