Struct aws_sdk_cloudsearch::model::TextOptions
source · [−]#[non_exhaustive]pub struct TextOptions {
pub default_value: Option<String>,
pub source_field: Option<String>,
pub return_enabled: Option<bool>,
pub sort_enabled: Option<bool>,
pub highlight_enabled: Option<bool>,
pub analysis_scheme: Option<String>,
}Expand description
Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.default_value: Option<String>A value to use for the field if the field isn’t specified for a document.
source_field: Option<String>A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.
return_enabled: Option<bool>Whether the contents of the field can be returned in the search results.
sort_enabled: Option<bool>Whether the field can be used to sort the search results.
highlight_enabled: Option<bool>Whether highlights can be returned for the field.
analysis_scheme: Option<String>The name of an analysis scheme for a text field.
Implementations
A value to use for the field if the field isn’t specified for a document.
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.
Whether the contents of the field can be returned in the search results.
Whether the field can be used to sort the search results.
Whether highlights can be returned for the field.
The name of an analysis scheme for a text field.
Creates a new builder-style object to manufacture TextOptions
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnwindSafe for TextOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more