mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-08-18 12:08:22 +00:00
issue/50 Removed ScoredDoc
This commit is contained in:
@@ -107,8 +107,7 @@ impl From<Vec<Term>> for MultiTermQuery {
|
||||
}
|
||||
|
||||
impl Query for MultiTermQuery {
|
||||
|
||||
|
||||
|
||||
fn weight(&self, searcher: &Searcher) -> Result<Box<Weight>> {
|
||||
let similitude = self.similitude(searcher);
|
||||
Ok(
|
||||
|
||||
@@ -3,7 +3,6 @@ use collector::Collector;
|
||||
use core::searcher::Searcher;
|
||||
use common::TimerTree;
|
||||
use SegmentLocalId;
|
||||
use ScoredDoc;
|
||||
use super::Weight;
|
||||
|
||||
|
||||
|
||||
+1
-5
@@ -1,5 +1,4 @@
|
||||
use DocSet;
|
||||
use ScoredDoc;
|
||||
use collector::Collector;
|
||||
|
||||
/// Scored `DocSet`
|
||||
@@ -12,10 +11,7 @@ pub trait Scorer: DocSet {
|
||||
|
||||
fn collect(&mut self, collector: &mut Collector) {
|
||||
while self.advance() {
|
||||
let scored_doc = ScoredDoc(self.score(), self.doc());
|
||||
collector.collect(scored_doc);
|
||||
collector.collect(self.doc(), self.score());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user