Trait tantivy::collector::CustomSegmentScorer[][src]

pub trait CustomSegmentScorer<TScore>: 'static {
    fn score(&mut self, doc: DocId) -> TScore;
}
Expand description

A custom segment scorer makes it possible to define any kind of score for a given document belonging to a specific segment.

It is the segment local version of the CustomScorer.

Required methods

Computes the score of a specific doc.

Implementors