Trait tantivy::tokenizer::Tokenizer[][src]

pub trait Tokenizer: 'static + Send + Sync + TokenizerClone {
    fn token_stream<'a>(&self, text: &'a str) -> BoxTokenStream<'a>;
}

Tokenizer are in charge of splitting text into a stream of token before indexing.

See the module documentation for more detail.

Warning

This API may change to use associated types.

Required methods

fn token_stream<'a>(&self, text: &'a str) -> BoxTokenStream<'a>[src]

Creates a token stream for a given str.

Loading content...

Implementors

impl Tokenizer for FacetTokenizer[src]

impl Tokenizer for NgramTokenizer[src]

impl Tokenizer for RawTokenizer[src]

impl Tokenizer for SimpleTokenizer[src]

Loading content...