Enum tantivy::SegmentPostingsOption [] [src]

pub enum SegmentPostingsOption {
    NoFreq,
    Freq,
    FreqAndPositions,
}

Object describing the amount of information required when reading a postings.

Since decoding information is not free, this makes it possible to avoid this extra cost when the information is not required. For instance, positions are useful when running phrase queries but useless in other queries.

Variants

Only the doc ids are decoded

DocIds and term frequencies are decoded

DocIds, term frequencies and positions will be decoded.

Trait Implementations

impl Clone for SegmentPostingsOption
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for SegmentPostingsOption
[src]

impl Debug for SegmentPostingsOption
[src]

Formats the value using the given formatter.