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)

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

Tuple Fields of BuiltInAnalyzer

0: String
CustomAnalyzer(CustomAnalyzer)

Custom analyzer that should be applied to the provided text.

Tuple Fields of CustomAnalyzer

0: CustomAnalyzer
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

Tuple Fields of BuiltInNormalizer

0: String
CustomNormalizer(CustomNormalizer)

The custom normalizer to use to convert text into a single token.

Tuple Fields of CustomNormalizer

0: CustomNormalizer
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.

Tuple Fields of Field

0: String

Implementations

Creates an instance of Analysis::Field

Creates an instance of Analysis::BuiltInAnalyzer

Creates an instance of Analysis::BuiltInNormalizer

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.