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

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

    fn count(&self, reader: &SegmentReader) -> Result<u32> { ... }
}

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.

Provided Methods

Returns the number documents within the given SegmentReader.

Implementors