Trait tantivy::collector::ScoreTweaker[][src]

pub trait ScoreTweaker<TScore>: Sync {
    type Child: ScoreSegmentTweaker<TScore>;
    fn segment_tweaker(
        &self,
        segment_reader: &SegmentReader
    ) -> Result<Self::Child>; }
Expand description

ScoreTweaker makes it possible to tweak the score emitted by the scorer into another one.

The ScoreTweaker itself does not make much of the computation itself. Instead, it helps constructing Self::Child instances that will compute the score at a segment scale.

Associated Types

Type of the associated ScoreSegmentTweaker.

Required methods

Builds a child tweaker for a specific segment. The child scorer is associated to a specific segment.

Implementors