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
fn scorer(&self, reader: &SegmentReader) -> Result<Box<Scorer>>
Returns the scorer for the given segment.
See Query
.
Provided Methods
fn count(&self, reader: &SegmentReader) -> Result<u32>
Returns the number documents within the given SegmentReader
.
Implementors
impl Weight for AllWeight