Class IndexField
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IndexField.Builder,IndexField>
Configuration information for a field in the index, including its name, type, and options. The supported options
depend on the IndexFieldType.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexField.Builderbuilder()final DateArrayOptionsReturns the value of the DateArrayOptions property for this object.final DateOptionsReturns the value of the DateOptions property for this object.final DoubleArrayOptionsReturns the value of the DoubleArrayOptions property for this object.final DoubleOptionsReturns the value of the DoubleOptions property for this object.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringA string that represents the name of an index field.final IndexFieldTypeReturns the value of the IndexFieldType property for this object.final StringReturns the value of the IndexFieldType property for this object.final IntArrayOptionsReturns the value of the IntArrayOptions property for this object.final IntOptionsReturns the value of the IntOptions property for this object.final LatLonOptionsReturns the value of the LatLonOptions property for this object.final LiteralArrayOptionsReturns the value of the LiteralArrayOptions property for this object.final LiteralOptionsReturns the value of the LiteralOptions property for this object.static Class<? extends IndexField.Builder> final TextArrayOptionsReturns the value of the TextArrayOptions property for this object.final TextOptionsReturns the value of the TextOptions property for this object.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
indexFieldName
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
scoreis reserved and cannot be used as a field name. To reference a document's ID, you can use the name_id.- Returns:
- 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
scoreis reserved and cannot be used as a field name. To reference a document's ID, you can use the name_id.
-
indexFieldType
Returns the value of the IndexFieldType property for this object.If the service returns an enum value that is not available in the current SDK version,
indexFieldTypewill returnIndexFieldType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromindexFieldTypeAsString().- Returns:
- The value of the IndexFieldType property for this object.
- See Also:
-
indexFieldTypeAsString
Returns the value of the IndexFieldType property for this object.If the service returns an enum value that is not available in the current SDK version,
indexFieldTypewill returnIndexFieldType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromindexFieldTypeAsString().- Returns:
- The value of the IndexFieldType property for this object.
- See Also:
-
intOptions
Returns the value of the IntOptions property for this object.- Returns:
- The value of the IntOptions property for this object.
-
doubleOptions
Returns the value of the DoubleOptions property for this object.- Returns:
- The value of the DoubleOptions property for this object.
-
literalOptions
Returns the value of the LiteralOptions property for this object.- Returns:
- The value of the LiteralOptions property for this object.
-
textOptions
Returns the value of the TextOptions property for this object.- Returns:
- The value of the TextOptions property for this object.
-
dateOptions
Returns the value of the DateOptions property for this object.- Returns:
- The value of the DateOptions property for this object.
-
latLonOptions
Returns the value of the LatLonOptions property for this object.- Returns:
- The value of the LatLonOptions property for this object.
-
intArrayOptions
Returns the value of the IntArrayOptions property for this object.- Returns:
- The value of the IntArrayOptions property for this object.
-
doubleArrayOptions
Returns the value of the DoubleArrayOptions property for this object.- Returns:
- The value of the DoubleArrayOptions property for this object.
-
literalArrayOptions
Returns the value of the LiteralArrayOptions property for this object.- Returns:
- The value of the LiteralArrayOptions property for this object.
-
textArrayOptions
Returns the value of the TextArrayOptions property for this object.- Returns:
- The value of the TextArrayOptions property for this object.
-
dateArrayOptions
Returns the value of the DateArrayOptions property for this object.- Returns:
- The value of the DateArrayOptions property for this object.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<IndexField.Builder,IndexField> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-