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 Child: ScoreSegmentTweaker<TScore>
type Child: ScoreSegmentTweaker<TScore>
Type of the associated ScoreSegmentTweaker
.
Required methods
fn segment_tweaker(&self, segment_reader: &SegmentReader) -> Result<Self::Child>
fn segment_tweaker(&self, segment_reader: &SegmentReader) -> Result<Self::Child>
Builds a child tweaker for a specific segment. The child scorer is associated to a specific segment.