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§
Provided Methods§
Sourcefn matched_positions(&self) -> Option<MatchedPositions>
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