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

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

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

fn score(&self, doc: DocId) -> TScore

Computes the score of a specific doc.

Loading content...

Implementors

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

Loading content...