Enum elasticsearch_dsl::analyze::Analysis
source · pub enum Analysis {
BuiltInAnalyzer(String),
CustomAnalyzer(CustomAnalyzer),
BuiltInNormalizer(String),
CustomNormalizer(CustomNormalizer),
Field(String),
}Expand description
Analysis types
Variants§
BuiltInAnalyzer(String)
The name of the analyzer that should be applied to the provided text.
This could be a built-in analyzer, or an analyzer that’s been configured in the index.
If this parameter is not specified, the analyze API uses the analyzer defined in the field’s mapping.
If no field is specified, the analyze API uses the default analyzer for the index.
If no index is specified, or the index does not have a default analyzer, the analyze API uses the standard analyzer.
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-analyzers.html
CustomAnalyzer(CustomAnalyzer)
Custom analyzer that should be applied to the provided text.
BuiltInNormalizer(String)
The name of built-in normalizer to use to convert text into a single token.
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-normalizers.html
CustomNormalizer(CustomNormalizer)
The custom normalizer to use to convert text into a single token.
Field(String)
Field used to derive the analyzer. To use this parameter, you must specify an index.
If specified, the analyzer parameter overrides this value.
If no field is specified, the analyze API uses the default analyzer for the index.
If no index is specified or the index does not have a default analyzer, the analyze API uses the standard analyzer.
Implementations§
source§impl Analysis
impl Analysis
sourcepub fn field<S>(value: S) -> Selfwhere
S: ToString,
pub fn field<S>(value: S) -> Selfwhere
S: ToString,
Creates an instance of Analysis::Field
sourcepub fn analyzer<S>(value: S) -> Selfwhere
S: ToString,
pub fn analyzer<S>(value: S) -> Selfwhere
S: ToString,
Creates an instance of Analysis::BuiltInAnalyzer
sourcepub fn normalizer<S>(value: S) -> Selfwhere
S: ToString,
pub fn normalizer<S>(value: S) -> Selfwhere
S: ToString,
Creates an instance of Analysis::BuiltInNormalizer
Trait Implementations§
source§impl From<CustomAnalyzer> for Analysis
impl From<CustomAnalyzer> for Analysis
source§fn from(value: CustomAnalyzer) -> Self
fn from(value: CustomAnalyzer) -> Self
source§impl From<CustomNormalizer> for Analysis
impl From<CustomNormalizer> for Analysis
source§fn from(value: CustomNormalizer) -> Self
fn from(value: CustomNormalizer) -> Self
impl Eq for Analysis
impl StructuralPartialEq for Analysis
Auto Trait Implementations§
impl Freeze for Analysis
impl RefUnwindSafe for Analysis
impl Send for Analysis
impl Sync for Analysis
impl Unpin for Analysis
impl UnwindSafe for Analysis
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)