[][src]Enum tantivy::schema::IndexRecordOption

pub enum IndexRecordOption {
    Basic,
    WithFreqs,
    WithFreqsAndPositions,
}

IndexRecordOption describes an amount information associated to a given indexed field.

It is both used to:

Variants

Basic

records only the DocIds

WithFreqs

records the document ids as well as the term frequency. The term frequency can help giving better scoring of the documents.

WithFreqsAndPositions

records the document id, the term frequency and the positions of the occurences in the document. Positions are required to run PhraseQueries.

Methods

impl IndexRecordOption[src]

pub fn is_termfreq_enabled(self) -> bool[src]

Returns true iff the term frequency will be encoded.

pub fn is_position_enabled(self) -> bool[src]

Returns true iff the term positions within the document are stored as well.

pub fn has_freq(self) -> bool[src]

Returns true iff this option includes encoding term frequencies.

pub fn has_positions(self) -> bool[src]

Returns true iff this option include encoding term positions.

Trait Implementations

impl Eq for IndexRecordOption[src]

impl Clone for IndexRecordOption[src]

impl PartialOrd<IndexRecordOption> for IndexRecordOption[src]

impl PartialEq<IndexRecordOption> for IndexRecordOption[src]

impl Ord for IndexRecordOption[src]

impl Copy for IndexRecordOption[src]

impl Hash for IndexRecordOption[src]

impl Debug for IndexRecordOption[src]

impl Serialize for IndexRecordOption[src]

impl<'de> Deserialize<'de> for IndexRecordOption[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]