Struct tantivy::tokenizer::FacetTokenizer
[−]
[src]
pub struct FacetTokenizer;
The FacetTokenizer
process a Facet
binary representation
and emits a token for all of its parent.
For instance, /america/north_america/canada
will emit the three following tokens
- /america/north_america/canada
- /america/north_america
- /america
Trait Implementations
impl Clone for FacetTokenizer
[src]
fn clone(&self) -> FacetTokenizer
[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 FacetTokenizer
[src]
type TokenStreamImpl = FacetTokenStream<'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