Function tantivy::query::intersect_scorers [−][src]
pub fn intersect_scorers(scorers: Vec<Box<dyn Scorer>>) -> Box<dyn Scorer>
Expand description
Returns the intersection scorer.
The score associated to the documents is the sum of the
score of the Scorer
s given in argument.
For better performance, the function uses a
specialized implementation if the two
shortest scorers are TermScorer
s.