Trait tantivy::query::Scorer [] [src]

pub trait Scorer: DocSet {
    fn score(&self) -> Score;

    fn collect(&mut self, collector: &mut Collector) { ... }
}

Scored set of documents matching a query within a specific segment.

See Query.

Required Methods

Returns the score.

This method will perform a bit of computation and is not cached.

Provided Methods

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

Implementations on Foreign Types

impl<'a> Scorer for Box<Scorer + 'a>
[src]

[src]

[src]

Implementors