Struct tantivy::collector::CountCollector [] [src]

pub struct CountCollector { /* fields omitted */ }

CountCollector collector only counts how many documents match the query.

Methods

impl CountCollector
[src]

[src]

Returns the count of documents that were collected.

Trait Implementations

impl Default for CountCollector
[src]

[src]

Returns the "default value" for a type. Read more

impl Collector for CountCollector
[src]

[src]

set_segment is called before beginning to enumerate on this segment. Read more

[src]

The query pushes the scored document to the collector via this method.