Trait tantivy::query::Weight [] [src]

pub trait Weight {
    fn scorer<'a>(
        &'a self,
        reader: &'a SegmentReader
    ) -> Result<Box<Scorer + 'a>>; }

A Weight is the specialization of a Query for a given set of segments.

See Query.

Required Methods

Returns the scorer for the given segment. See Query.

Implementors