Trait tantivy::tokenizer::BoxedTokenizer [] [src]

pub trait BoxedTokenizer: Send + Sync {
    fn token_stream<'a>(&self, text: &'a str) -> Box<TokenStream + 'a>;
fn token_stream_texts<'b>(
        &self,
        texts: &'b [&'b str]
    ) -> Box<TokenStream + 'b>;
fn boxed_clone(&self) -> Box<BoxedTokenizer>; }

A boxed tokenizer

Required Methods

Important traits for Box<R>

Tokenize a &str

Important traits for Box<R>

Tokenize an array&str

The resulting TokenStream is equivalent to what would be obtained if the &str were one concatenated &str, with an artificial position gap of 2 between the different fields to prevent accidental PhraseQuery to match accross two terms.

Important traits for Box<R>

Return a boxed clone of the tokenizer

Implementors