Skip to content

Commit f5a9123

Browse files
committed
add collect_block for MultiCollector
1 parent 9ca04b4 commit f5a9123

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/collector/multi_collector.rs

+7
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,13 @@ impl SegmentCollector for MultiCollectorChild {
236236
Ok(())
237237
}
238238

239+
fn collect_block(&mut self, docs: &[(DocId, Score)]) -> crate::Result<()> {
240+
for child in &mut self.children {
241+
child.collect_block(docs)?;
242+
}
243+
Ok(())
244+
}
245+
239246
fn harvest(self) -> MultiFruit {
240247
MultiFruit {
241248
sub_fruits: self

0 commit comments

Comments
 (0)