Skip to main content

Scorer

Trait Scorer 

Source
pub trait Scorer:
    DocSet
    + Send
    + Sync {
    // Required method
    fn score(&self) -> Score;

    // Provided method
    fn matched_positions(&self) -> Option<MatchedPositions> { ... }
}
Expand description

Scored document stream: a DocSet that also provides scores.

Required Methods§

Source

fn score(&self) -> Score

Score for current document

Provided Methods§

Source

fn matched_positions(&self) -> Option<MatchedPositions>

Get matched positions for the current document (if available) Returns (field_id, positions) pairs where positions are encoded as per PositionMode

Implementors§