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
fn scorer<'a>(&'a self, reader: &'a SegmentReader) -> Result<Box<Scorer + 'a>>
Returns the scorer for the given segment.
See Query
.
Implementors
impl Weight for AllWeight