[][src]Struct tantivy::tokenizer::TokenizerManager

pub struct TokenizerManager { /* fields omitted */ }

The tokenizer manager serves as a store for all of the pre-configured tokenizer pipelines.

By default, it is populated with the following managers.

  • raw : does not process nor tokenize the text.
  • default : Chops the text on according to whitespace and punctuation, removes tokens that are too long, and lowercases tokens
  • en_stem : Like default, but also applies stemming on the resulting tokens. Stemming can improve the recall of your search engine.

Methods

impl TokenizerManager[src]

pub fn register<A>(&self, tokenizer_name: &str, tokenizer: A) where
    A: 'static + Send + Sync + for<'a> Tokenizer<'a>, 
[src]

Registers a new tokenizer associated with a given name.

pub fn get(&self, tokenizer_name: &str) -> Option<Box<dyn BoxedTokenizer>>[src]

Accessing a tokenizer given its name.

Trait Implementations

impl Clone for TokenizerManager[src]

impl Default for TokenizerManager[src]

fn default() -> TokenizerManager[src]

Creates an TokenizerManager prepopulated with the default pre-configured tokenizers of tantivy.

  • simple
  • en_stem
  • ja

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> Erased for T[src]

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

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