Struct elasticsearch_dsl::analyze::CustomAnalyzer
source · pub struct CustomAnalyzer { /* private fields */ }
Expand description
Structure of custom analyzer.
Implementations§
source§impl CustomAnalyzer
impl CustomAnalyzer
sourcepub fn new<S>(tokenizer: S) -> Selfwhere
S: ToString,
pub fn new<S>(tokenizer: S) -> Selfwhere
S: ToString,
Create instance of custom analyzer and sets tokenizer
Tokenizer to use to convert text into tokens. See Tokenizer reference
for a list of tokenizers.
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html
sourcepub fn char_filter<I>(self, char_filter: I) -> Selfwhere
I: IntoIterator,
I::Item: Into<StringOrObject>,
pub fn char_filter<I>(self, char_filter: I) -> Selfwhere
I: IntoIterator,
I::Item: Into<StringOrObject>,
Array of character filters used to preprocess characters before the tokenizer.
See Character filters reference
for a list of character filters.
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-charfilters.html
sourcepub fn filter<I>(self, filter: I) -> Selfwhere
I: IntoIterator,
I::Item: Into<StringOrObject>,
pub fn filter<I>(self, filter: I) -> Selfwhere
I: IntoIterator,
I::Item: Into<StringOrObject>,
Array of token filters used to apply after the tokenizer.
See Token filter reference
for a list of token filters.
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenfilters.html
Trait Implementations§
source§impl Clone for CustomAnalyzer
impl Clone for CustomAnalyzer
source§fn clone(&self) -> CustomAnalyzer
fn clone(&self) -> CustomAnalyzer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CustomAnalyzer
impl Debug for CustomAnalyzer
source§impl Default for CustomAnalyzer
impl Default for CustomAnalyzer
source§fn default() -> CustomAnalyzer
fn default() -> CustomAnalyzer
Returns the “default value” for a type. Read more
source§impl From<CustomAnalyzer> for Analysis
impl From<CustomAnalyzer> for Analysis
source§fn from(value: CustomAnalyzer) -> Self
fn from(value: CustomAnalyzer) -> Self
Converts to this type from the input type.