[][src]Struct tantivy::schema::TextFieldIndexing

pub struct TextFieldIndexing { /* fields omitted */ }

Configuration defining indexing for a text field.

It defines

  • the amount of information that should be stored about the presence of a term in a document. Essentially, should we store the term frequency and/or the positions (See IndexRecordOption).
  • the name of the Tokenizer that should be used to process the field.

Methods

impl TextFieldIndexing[src]

pub fn set_tokenizer(self, tokenizer_name: &str) -> TextFieldIndexing[src]

Sets the tokenizer to be used for a given field.

pub fn tokenizer(&self) -> &str[src]

Returns the tokenizer that will be used for this field.

pub fn set_index_option(
    self,
    index_option: IndexRecordOption
) -> TextFieldIndexing
[src]

Sets which information should be indexed with the tokens.

See IndexRecordOption for more detail.

pub fn index_option(&self) -> IndexRecordOption[src]

Returns the indexing options associated to this field.

See IndexRecordOption for more detail.

Trait Implementations

impl Clone for TextFieldIndexing[src]

impl Default for TextFieldIndexing[src]

impl Eq for TextFieldIndexing[src]

impl PartialEq<TextFieldIndexing> for TextFieldIndexing[src]

impl Debug for TextFieldIndexing[src]

impl StructuralPartialEq for TextFieldIndexing[src]

impl StructuralEq for TextFieldIndexing[src]

impl Serialize for TextFieldIndexing[src]

impl<'de> Deserialize<'de> for TextFieldIndexing[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> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]

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