Trait tantivy::query::ScoreCombiner
source · pub trait ScoreCombiner: Default + Clone + Send + Copy + 'static {
// Required methods
fn update<TScorer: Scorer>(&mut self, scorer: &mut TScorer);
fn clear(&mut self);
fn score(&self) -> Score;
}
Expand description
The ScoreCombiner
trait defines how to compute
an overall score given a list of scores.
Required Methods§
sourcefn update<TScorer: Scorer>(&mut self, scorer: &mut TScorer)
fn update<TScorer: Scorer>(&mut self, scorer: &mut TScorer)
Aggregates the score combiner with the given scorer.
The ScoreCombiner
may decide to call .scorer.score()
or not.
Object Safety§
This trait is not object safe.