Struct tantivy::tokenizer::SimpleTokenizer
[−]
[src]
pub struct SimpleTokenizer;
Tokenize the text by splitting on whitespaces and punctuation.
Trait Implementations
impl Clone for SimpleTokenizer
[src]
fn clone(&self) -> SimpleTokenizer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Tokenizer<'a> for SimpleTokenizer
[src]
type TokenStreamImpl = SimpleTokenStream<'a>
Type associated to the resulting tokenstream tokenstream.
fn token_stream(&self, text: &'a str) -> Self::TokenStreamImpl
[src]
Creates a token stream for a given str
.
fn filter<NewFilter>(
self,
new_filter: NewFilter
) -> ChainTokenizer<NewFilter, Self> where
NewFilter: TokenFilter<Self::TokenStreamImpl>,
[src]
self,
new_filter: NewFilter
) -> ChainTokenizer<NewFilter, Self> where
NewFilter: TokenFilter<Self::TokenStreamImpl>,
Appends a token filter to the current tokenizer. Read more