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) -> Self where
S: Into<String>,
pub fn new<S>(tokenizer: S) -> Self where
S: Into<String>,
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) -> Self where
I: IntoIterator,
I::Item: Into<StringOrObject>,
pub fn char_filter<I>(self, char_filter: I) -> Self where
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) -> Self where
I: IntoIterator,
I::Item: Into<StringOrObject>,
pub fn filter<I>(self, filter: I) -> Self where
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CustomAnalyzer) -> bool
fn ne(&self, other: &CustomAnalyzer) -> bool
This method tests for !=
.
sourceimpl Serialize for CustomAnalyzer
impl Serialize 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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