[][src]Struct tantivy::schema::IntOptions

pub struct IntOptions { /* fields omitted */ }

Define how an int field should be handled by tantivy.

Methods

impl IntOptions[src]

pub fn is_stored(&self) -> bool[src]

Returns true iff the value is stored.

pub fn is_indexed(&self) -> bool[src]

Returns true iff the value is indexed.

pub fn is_fast(&self) -> bool[src]

Returns true iff the value is a fast field.

pub fn set_stored(self) -> IntOptions[src]

Set the u64 options as stored.

Only the fields that are set as stored are persisted into the Tantivy's store.

pub fn set_indexed(self) -> IntOptions[src]

Set the u64 options as indexed.

Setting an integer as indexed will generate a posting list for each value taken by the integer.

pub fn set_fast(self, cardinality: Cardinality) -> IntOptions[src]

Set the u64 options as a single-valued fast field.

Fast fields are designed for random access. Access time are similar to a random lookup in an array. If more than one value is associated to a fast field, only the last one is kept.

pub fn get_fastfield_cardinality(&self) -> Option<Cardinality>[src]

Returns the cardinality of the fastfield.

If the field has not been declared as a fastfield, then the method returns None.

Trait Implementations

impl Eq for IntOptions[src]

impl Default for IntOptions[src]

impl Clone for IntOptions[src]

impl PartialEq<IntOptions> for IntOptions[src]

impl From<()> for IntOptions[src]

impl<T: Into<IntOptions>> BitOr<T> for IntOptions[src]

type Output = IntOptions

The resulting type after applying the | operator.

impl Debug for IntOptions[src]

impl Serialize for IntOptions[src]

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

Auto Trait Implementations

Blanket Implementations

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