Trait tique::conditional_collector::CheckCondition[][src]

pub trait CheckCondition<T>: 'static + Clone {
    fn check(
        &self,
        segment_ord: SegmentOrdinal,
        doc_id: DocId,
        score: T,
        ascending: bool
    ) -> bool; }
Expand description

The condition that gets checked before collection. In order for a document to appear in the results it must first return true for check.

Required methods

Decides wether the given document is a valid candidate or not

The ascending parameter signals the ordering chosen via Ascending or Descending

Implementations on Foreign Types

Implementors