Trait tantivy::collector::ScoreSegmentTweaker [−][src]
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
.
Required methods
fn score(&mut self, doc: DocId, score: Score) -> TScore
[src]
Tweak the given score
for the document doc
.
Implementors
impl<F, TScore> ScoreSegmentTweaker<TScore> for F where
F: 'static + FnMut(DocId, Score) -> TScore,
[src]
F: 'static + FnMut(DocId, Score) -> TScore,