Struct tantivy::query::Union[][src]

pub struct Union<TScorer, TScoreCombiner = DoNothingCombiner> { /* fields omitted */ }

Creates a DocSet that iterator through the intersection of two DocSets.

Trait Implementations

impl<TScorer, TScoreCombiner> From<Vec<TScorer>> for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: ScoreCombiner,
    TScorer: Scorer
[src]

Performs the conversion.

impl<TScorer, TScoreCombiner> DocSet for Union<TScorer, TScoreCombiner> where
    TScorer: Scorer,
    TScoreCombiner: ScoreCombiner, 
[src]

Goes to the next element. .advance(...) needs to be called a first time to point to the correct element. Read more

Returns the number documents matching. Read more

After skipping, position the iterator in such a way that .doc() will return a value greater than or equal to target. Read more

Returns the current document

Returns a best-effort hint of the length of the docset. Read more

Fills a given mutable buffer with the next doc ids from the DocSet Read more

Appends all docs to a bitset.

impl<TScorer, TScoreCombiner> Scorer for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: ScoreCombiner,
    TScorer: Scorer
[src]

Returns the score. Read more

Consumes the complete DocSet and push the scored documents to the collector. Read more

Auto Trait Implementations

impl<TScorer, TScoreCombiner> Send for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: Send,
    TScorer: Send

impl<TScorer, TScoreCombiner> Sync for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: Sync,
    TScorer: Sync