[][src]Trait tantivy::collector::ScoreSegmentTweaker

pub trait ScoreSegmentTweaker<TScore>: 'static {
    fn score(&self, doc: DocId, score: Score) -> TScore;
}

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(&self, doc: DocId, score: Score) -> TScore

Tweak the given score for the document doc.

Loading content...

Implementors

impl<F, TScore> ScoreSegmentTweaker<TScore> for F where
    F: 'static + Sync + Send + Fn(DocId, Score) -> TScore, 
[src]

Loading content...