Struct elasticsearch_dsl::analyze::CustomAnalyzer
source · [−]pub struct CustomAnalyzer { /* private fields */ }Expand description
Structure of custom analyzer.
Implementations
sourceimpl 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
sourceimpl Clone for CustomAnalyzer
impl Clone for CustomAnalyzer
sourcefn clone(&self) -> CustomAnalyzer
fn clone(&self) -> CustomAnalyzer
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CustomAnalyzer
impl Debug for CustomAnalyzer
sourceimpl Default for CustomAnalyzer
impl Default for CustomAnalyzer
sourcefn default() -> CustomAnalyzer
fn default() -> CustomAnalyzer
Returns the “default value” for a type. Read more
sourceimpl From<CustomAnalyzer> for Analysis
impl From<CustomAnalyzer> for Analysis
sourcefn from(value: CustomAnalyzer) -> Self
fn from(value: CustomAnalyzer) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<CustomAnalyzer> for CustomAnalyzer
impl PartialEq<CustomAnalyzer> for CustomAnalyzer
sourcefn eq(&self, other: &CustomAnalyzer) -> bool
fn eq(&self, other: &CustomAnalyzer) -> bool
sourceimpl Serialize for CustomAnalyzer
impl Serialize for CustomAnalyzer
impl Eq for CustomAnalyzer
impl StructuralEq for CustomAnalyzer
impl StructuralPartialEq for CustomAnalyzer
Auto Trait Implementations
impl RefUnwindSafe for CustomAnalyzer
impl Send for CustomAnalyzer
impl Sync for CustomAnalyzer
impl Unpin for CustomAnalyzer
impl UnwindSafe for CustomAnalyzer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more