NOBUG Use the skipping logic of segment postings in

This commit is contained in:
Paul Masurel
2018-02-01 18:36:55 +09:00
parent 271b019420
commit b78efdc59f

View File

@@ -1,5 +1,6 @@
use Score;
use DocId;
use postings::SkipResult;
use fastfield::U64FastFieldReader;
use postings::DocSet;
use query::Scorer;
@@ -39,6 +40,10 @@ where
fn size_hint(&self) -> usize {
self.postings.size_hint()
}
fn skip_next(&mut self, target: DocId) -> SkipResult {
self.postings.skip_next(target)
}
}
impl<TPostings> Scorer for TermScorer<TPostings>