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) -> Self
pub fn char_filter<I>(self, char_filter: I) -> Self
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
pub fn filter<I>(self, filter: I) -> Self
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.
Source§impl PartialEq for CustomAnalyzer
impl PartialEq for CustomAnalyzer
Source§impl Serialize for CustomAnalyzer
impl Serialize for CustomAnalyzer
impl Eq for CustomAnalyzer
impl StructuralPartialEq for CustomAnalyzer
Auto Trait Implementations§
impl Freeze for CustomAnalyzer
impl RefUnwindSafe for CustomAnalyzer
impl Send for CustomAnalyzer
impl Sync for CustomAnalyzer
impl Unpin for CustomAnalyzer
impl UnwindSafe for CustomAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more