Enum elasticsearch_dsl::analyze::Analysis [−][src]
pub enum Analysis {
BuiltInAnalyzer(String),
CustomAnalyzer(CustomAnalyzer),
BuiltInNormalizer(String),
CustomNormalizer(CustomNormalizer),
Field(String),
}
Expand description
Analysis types
Variants
BuiltInAnalyzer(String)
Tuple Fields
0: 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)
Tuple Fields
Custom analyzer that should be applied to the provided text.
BuiltInNormalizer(String)
Tuple Fields
0: 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)
Tuple Fields
The custom normalizer to use to convert text into a single token.
Field(String)
Tuple Fields
0: 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
Creates an instance of Analysis::Field
Creates an instance of Analysis::BuiltInAnalyzer
Creates an instance of Analysis::BuiltInNormalizer
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Analysis
impl UnwindSafe for Analysis
Blanket Implementations
Mutably borrows from an owned value. Read more