Struct tantivy::query::Union
[−]
[src]
pub struct Union<TScorer, TScoreCombiner = DoNothingCombiner> { /* fields omitted */ }
Creates a DocSet
that iterator through the intersection of two DocSet
s.
Trait Implementations
impl<TScorer, TScoreCombiner> From<Vec<TScorer>> for Union<TScorer, TScoreCombiner> where
TScoreCombiner: ScoreCombiner,
TScorer: Scorer,
[src]
TScoreCombiner: ScoreCombiner,
TScorer: Scorer,
impl<TScorer, TScoreCombiner> DocSet for Union<TScorer, TScoreCombiner> where
TScorer: Scorer,
TScoreCombiner: ScoreCombiner,
[src]
TScorer: Scorer,
TScoreCombiner: ScoreCombiner,
fn advance(&mut self) -> bool
[src]
Goes to the next element. .advance(...)
needs to be called a first time to point to the correct element. Read more
fn count(&mut self) -> u32
[src]
Returns the number documents matching. Read more
fn skip_next(&mut self, target: DocId) -> SkipResult
[src]
After skipping, position the iterator in such a way that .doc()
will return a value greater than or equal to target. Read more
fn doc(&self) -> DocId
[src]
Returns the current document
fn size_hint(&self) -> u32
[src]
Returns a best-effort hint of the length of the docset. Read more
fn fill_buffer(&mut self, buffer: &mut [DocId]) -> usize
[src]
Fills a given mutable buffer with the next doc ids from the DocSet
Read more
fn append_to_bitset(&mut self, bitset: &mut BitSet)
[src]
Appends all docs to a bitset
.
impl<TScorer, TScoreCombiner> Scorer for Union<TScorer, TScoreCombiner> where
TScoreCombiner: ScoreCombiner,
TScorer: Scorer,
[src]
TScoreCombiner: ScoreCombiner,
TScorer: Scorer,