pub trait Query: Send + Sync {
// Required methods
fn scorer<'a>(&'a self, reader: &'a SegmentReader) -> ScorerFuture<'a>;
fn count_estimate<'a>(
&'a self,
reader: &'a SegmentReader,
) -> CountFuture<'a>;
}Expand description
A search query (async)
Required Methods§
Sourcefn scorer<'a>(&'a self, reader: &'a SegmentReader) -> ScorerFuture<'a>
fn scorer<'a>(&'a self, reader: &'a SegmentReader) -> ScorerFuture<'a>
Create a scorer for this query against a single segment (async)
Sourcefn count_estimate<'a>(&'a self, reader: &'a SegmentReader) -> CountFuture<'a>
fn count_estimate<'a>(&'a self, reader: &'a SegmentReader) -> CountFuture<'a>
Estimated number of matching documents in a segment (async)
Trait Implementations§
Source§impl Query for Box<dyn Query>
impl Query for Box<dyn Query>
Source§fn scorer<'a>(&'a self, reader: &'a SegmentReader) -> ScorerFuture<'a>
fn scorer<'a>(&'a self, reader: &'a SegmentReader) -> ScorerFuture<'a>
Create a scorer for this query against a single segment (async)
Source§fn count_estimate<'a>(&'a self, reader: &'a SegmentReader) -> CountFuture<'a>
fn count_estimate<'a>(&'a self, reader: &'a SegmentReader) -> CountFuture<'a>
Estimated number of matching documents in a segment (async)