Struct aws_sdk_cloudsearch::model::IndexField
source · #[non_exhaustive]pub struct IndexField { /* private fields */ }Expand description
Configuration information for a field in the index, including its name, type, and options. The supported options depend on the .IndexFieldType
Implementations§
source§impl IndexField
impl IndexField
sourcepub fn index_field_name(&self) -> Option<&str>
pub fn index_field_name(&self) -> Option<&str>
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.
sourcepub fn index_field_type(&self) -> Option<&IndexFieldType>
pub fn index_field_type(&self) -> Option<&IndexFieldType>
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.
sourcepub fn int_options(&self) -> Option<&IntOptions>
pub fn int_options(&self) -> Option<&IntOptions>
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int. All options are enabled by default.
sourcepub fn double_options(&self) -> Option<&DoubleOptions>
pub fn double_options(&self) -> Option<&DoubleOptions>
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double. All options are enabled by default.
sourcepub fn literal_options(&self) -> Option<&LiteralOptions>
pub fn literal_options(&self) -> Option<&LiteralOptions>
Options for literal field. Present if IndexFieldType specifies the field is of type literal. All options are enabled by default.
sourcepub fn text_options(&self) -> Option<&TextOptions>
pub fn text_options(&self) -> Option<&TextOptions>
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.
sourcepub fn date_options(&self) -> Option<&DateOptions>
pub fn date_options(&self) -> Option<&DateOptions>
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date. All options are enabled by default.
sourcepub fn lat_lon_options(&self) -> Option<&LatLonOptions>
pub fn lat_lon_options(&self) -> Option<&LatLonOptions>
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon. All options are enabled by default.
sourcepub fn int_array_options(&self) -> Option<&IntArrayOptions>
pub fn int_array_options(&self) -> Option<&IntArrayOptions>
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array. All options are enabled by default.
sourcepub fn double_array_options(&self) -> Option<&DoubleArrayOptions>
pub fn double_array_options(&self) -> Option<&DoubleArrayOptions>
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array. All options are enabled by default.
sourcepub fn literal_array_options(&self) -> Option<&LiteralArrayOptions>
pub fn literal_array_options(&self) -> Option<&LiteralArrayOptions>
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array. All options are enabled by default.
sourcepub fn text_array_options(&self) -> Option<&TextArrayOptions>
pub fn text_array_options(&self) -> Option<&TextArrayOptions>
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.
sourcepub fn date_array_options(&self) -> Option<&DateArrayOptions>
pub fn date_array_options(&self) -> Option<&DateArrayOptions>
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array. All options are enabled by default.
source§impl IndexField
impl IndexField
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IndexField.
Trait Implementations§
source§impl Clone for IndexField
impl Clone for IndexField
source§fn clone(&self) -> IndexField
fn clone(&self) -> IndexField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IndexField
impl Debug for IndexField
source§impl PartialEq<IndexField> for IndexField
impl PartialEq<IndexField> for IndexField
source§fn eq(&self, other: &IndexField) -> bool
fn eq(&self, other: &IndexField) -> bool
self and other values to be equal, and is used
by ==.