Struct tantivy::query::Exclude[][src]

pub struct Exclude<TDocSet, TDocSetExclude> { /* fields omitted */ }

Filters a given DocSet by removing the docs from a given DocSet.

The excluding docset has no impact on scoring.

Methods

impl<TDocSet, TDocSetExclude> Exclude<TDocSet, TDocSetExclude> where
    TDocSetExclude: DocSet
[src]

Creates a new ExcludeScorer

Trait Implementations

impl<TDocSet, TDocSetExclude> DocSet for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: DocSet,
    TDocSetExclude: DocSet
[src]

Goes to the next element. .advance(...) needs to be called a first time to point to the correct element. 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

.size_hint() directly returns the size of the underlying docset without taking in account the fact that docs might be deleted.

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

Appends all docs to a bitset.

Returns the number documents matching. Read more

impl<TScorer, TDocSetExclude> Scorer for Exclude<TScorer, TDocSetExclude> where
    TScorer: Scorer,
    TDocSetExclude: DocSet + 'static, 
[src]

Returns the score. Read more

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

Auto Trait Implementations

impl<TDocSet, TDocSetExclude> Send for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: Send,
    TDocSetExclude: Send

impl<TDocSet, TDocSetExclude> Sync for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: Sync,
    TDocSetExclude: Sync