Struct tantivy::query::ConstScorer [] [src]

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

Wraps a DocSet and simply returns a constant Scorer. The ConstScorer is useful if you have a DocSet where you needed a scorer.

The ConstScorer's constant score can be set by calling .set_score(...).

Methods

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

[src]

Creates a new ConstScorer.

[src]

Sets the constant score to a different value.

Trait Implementations

impl<TDocSet: DocSet> DocSet for ConstScorer<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]

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

[src]

Returns the current document

[src]

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

[src]

Appends all docs to a bitset.

[src]

Advances the cursor to the next document None is returned if the iterator has DocSet has already been entirely consumed. Read more

impl<TDocSet: DocSet> Scorer for ConstScorer<TDocSet>
[src]

[src]

Returns the score. Read more

[src]

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