Trait tantivy::collector::ScoreSegmentTweaker
source · pub trait ScoreSegmentTweaker<TScore>: 'static {
// Required method
fn score(&mut self, doc: DocId, score: Score) -> TScore;
}
Expand description
A ScoreSegmentTweaker
makes it possible to modify the default score
for a given document belonging to a specific segment.
It is the segment local version of the ScoreTweaker
.