Struct tantivy::query::Intersection [] [src]

pub struct Intersection<TDocSet: DocSet> { /* fields omitted */ }

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

Methods

impl<TDocSet: DocSet> Intersection<TDocSet>
[src]

Important traits for &'a mut [u8]
[src]

Returns an array to the underlying DocSets of the intersection. These DocSet are in the same position as the IntersectionDocSet, so that user can access their docfreq and positions.

Trait Implementations

impl<TDocSet: DocSet> From<Vec<TDocSet>> for Intersection<TDocSet>
[src]

[src]

Performs the conversion.

impl<TDocSet: DocSet> DocSet for Intersection<TDocSet>
[src]

[src]

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

[src]

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

[src]

Returns the current document

[src]

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

[src]

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

[src]

Appends all docs to a bitset.

[src]

Returns the number documents matching. Read more

impl<TScorer> Scorer for Intersection<TScorer> where
    TScorer: Scorer
[src]

[src]

Returns the score. Read more

[src]

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

Auto Trait Implementations

impl<TDocSet> Send for Intersection<TDocSet> where
    TDocSet: Send

impl<TDocSet> Sync for Intersection<TDocSet> where
    TDocSet: Sync