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

pub trait Scorer: Any + DocSet + 'static {
    fn score(&mut self) -> Score;

    fn collect(
        &mut self,
        collector: &mut Collector,
        delete_bitset_opt: Option<&DeleteBitSet>
    ) { ... } }

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.

Methods

impl Scorer

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for Box<R>

Trait Implementations

impl<_T: Any> Downcast<_T> for Scorer where
    _T: Any

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for Box<R>

Implementations on Foreign Types

impl Scorer for Box<Scorer>
[src]

Implementors