[][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.

Implementations

impl IndexRecordOption[src]

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 Clone for IndexRecordOption[src]

impl Copy for IndexRecordOption[src]

impl Debug for IndexRecordOption[src]

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

impl Eq for IndexRecordOption[src]

impl Hash for IndexRecordOption[src]

impl Ord for IndexRecordOption[src]

impl PartialEq<IndexRecordOption> for IndexRecordOption[src]

impl PartialOrd<IndexRecordOption> for IndexRecordOption[src]

impl Serialize for IndexRecordOption[src]

impl StructuralEq for IndexRecordOption[src]

impl StructuralPartialEq for IndexRecordOption[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> Erased for T[src]

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,