Struct aws_sdk_cloudsearch::types::builders::AnalysisOptionsBuilder
source · #[non_exhaustive]pub struct AnalysisOptionsBuilder { /* private fields */ }
Expand description
A builder for AnalysisOptions
.
Implementations§
source§impl AnalysisOptionsBuilder
impl AnalysisOptionsBuilder
sourcepub fn synonyms(self, input: impl Into<String>) -> Self
pub fn synonyms(self, input: impl Into<String>) -> Self
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.
sourcepub fn set_synonyms(self, input: Option<String>) -> Self
pub fn set_synonyms(self, input: Option<String>) -> Self
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.
sourcepub fn get_synonyms(&self) -> &Option<String>
pub fn get_synonyms(&self) -> &Option<String>
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.
sourcepub fn stopwords(self, input: impl Into<String>) -> Self
pub fn stopwords(self, input: impl Into<String>) -> Self
A JSON array of terms to ignore during indexing and searching. For example, \["a", "an", "the", "of"\]
. The stopwords dictionary must explicitly list each word you want to ignore. Wildcards and regular expressions are not supported.
sourcepub fn set_stopwords(self, input: Option<String>) -> Self
pub fn set_stopwords(self, input: Option<String>) -> Self
A JSON array of terms to ignore during indexing and searching. For example, \["a", "an", "the", "of"\]
. The stopwords dictionary must explicitly list each word you want to ignore. Wildcards and regular expressions are not supported.
sourcepub fn get_stopwords(&self) -> &Option<String>
pub fn get_stopwords(&self) -> &Option<String>
A JSON array of terms to ignore during indexing and searching. For example, \["a", "an", "the", "of"\]
. The stopwords dictionary must explicitly list each word you want to ignore. Wildcards and regular expressions are not supported.
sourcepub fn stemming_dictionary(self, input: impl Into<String>) -> Self
pub fn stemming_dictionary(self, input: impl Into<String>) -> Self
A JSON object that contains a collection of string:value pairs that each map a term to its stem. For example, {"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The stemming dictionary is applied in addition to any algorithmic stemming. This enables you to override the results of the algorithmic stemming to correct specific cases of overstemming or understemming. The maximum size of a stemming dictionary is 500 KB.
sourcepub fn set_stemming_dictionary(self, input: Option<String>) -> Self
pub fn set_stemming_dictionary(self, input: Option<String>) -> Self
A JSON object that contains a collection of string:value pairs that each map a term to its stem. For example, {"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The stemming dictionary is applied in addition to any algorithmic stemming. This enables you to override the results of the algorithmic stemming to correct specific cases of overstemming or understemming. The maximum size of a stemming dictionary is 500 KB.
sourcepub fn get_stemming_dictionary(&self) -> &Option<String>
pub fn get_stemming_dictionary(&self) -> &Option<String>
A JSON object that contains a collection of string:value pairs that each map a term to its stem. For example, {"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The stemming dictionary is applied in addition to any algorithmic stemming. This enables you to override the results of the algorithmic stemming to correct specific cases of overstemming or understemming. The maximum size of a stemming dictionary is 500 KB.
sourcepub fn japanese_tokenization_dictionary(self, input: impl Into<String>) -> Self
pub fn japanese_tokenization_dictionary(self, input: impl Into<String>) -> Self
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
sourcepub fn set_japanese_tokenization_dictionary(self, input: Option<String>) -> Self
pub fn set_japanese_tokenization_dictionary(self, input: Option<String>) -> Self
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
sourcepub fn get_japanese_tokenization_dictionary(&self) -> &Option<String>
pub fn get_japanese_tokenization_dictionary(&self) -> &Option<String>
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
sourcepub fn algorithmic_stemming(self, input: AlgorithmicStemming) -> Self
pub fn algorithmic_stemming(self, input: AlgorithmicStemming) -> Self
The level of algorithmic stemming to perform: none
, minimal
, light
, or full
. The available levels vary depending on the language. For more information, see Language Specific Text Processing Settings in the Amazon CloudSearch Developer Guide
sourcepub fn set_algorithmic_stemming(
self,
input: Option<AlgorithmicStemming>,
) -> Self
pub fn set_algorithmic_stemming( self, input: Option<AlgorithmicStemming>, ) -> Self
The level of algorithmic stemming to perform: none
, minimal
, light
, or full
. The available levels vary depending on the language. For more information, see Language Specific Text Processing Settings in the Amazon CloudSearch Developer Guide
sourcepub fn get_algorithmic_stemming(&self) -> &Option<AlgorithmicStemming>
pub fn get_algorithmic_stemming(&self) -> &Option<AlgorithmicStemming>
The level of algorithmic stemming to perform: none
, minimal
, light
, or full
. The available levels vary depending on the language. For more information, see Language Specific Text Processing Settings in the Amazon CloudSearch Developer Guide
sourcepub fn build(self) -> AnalysisOptions
pub fn build(self) -> AnalysisOptions
Consumes the builder and constructs a AnalysisOptions
.
Trait Implementations§
source§impl Clone for AnalysisOptionsBuilder
impl Clone for AnalysisOptionsBuilder
source§fn clone(&self) -> AnalysisOptionsBuilder
fn clone(&self) -> AnalysisOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalysisOptionsBuilder
impl Debug for AnalysisOptionsBuilder
source§impl Default for AnalysisOptionsBuilder
impl Default for AnalysisOptionsBuilder
source§fn default() -> AnalysisOptionsBuilder
fn default() -> AnalysisOptionsBuilder
source§impl PartialEq for AnalysisOptionsBuilder
impl PartialEq for AnalysisOptionsBuilder
source§fn eq(&self, other: &AnalysisOptionsBuilder) -> bool
fn eq(&self, other: &AnalysisOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalysisOptionsBuilder
Auto Trait Implementations§
impl Freeze for AnalysisOptionsBuilder
impl RefUnwindSafe for AnalysisOptionsBuilder
impl Send for AnalysisOptionsBuilder
impl Sync for AnalysisOptionsBuilder
impl Unpin for AnalysisOptionsBuilder
impl UnwindSafe for AnalysisOptionsBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more