Class Search
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Search.Builder,Search>
Provides information about how a custom index field is used during a search.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Search.Builderbuilder()final BooleanDetermines whether the field is returned in the query response.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final BooleanIndicates that the field can be used to create search facets, a count of results for each value in the field.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final BooleanDetermines whether the field is used in the search.static Class<? extends Search.Builder> final Booleansortable()Determines whether the field can be used to sort the results of a query.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
-
facetable
Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is
false.- Returns:
- Indicates that the field can be used to create search facets, a count of results for each value in the
field. The default is
false.
-
searchable
Determines whether the field is used in the search. If the
Searchablefield istrue, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default istruefor string fields andfalsefor number and date fields.- Returns:
- Determines whether the field is used in the search. If the
Searchablefield istrue, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default istruefor string fields andfalsefor number and date fields.
-
displayable
Determines whether the field is returned in the query response. The default is
true.- Returns:
- Determines whether the field is returned in the query response. The default is
true.
-
sortable
Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have
Sortableset totrue, Amazon Kendra returns an exception. The default isfalse.- Returns:
- Determines whether the field can be used to sort the results of a query. If you specify sorting on a
field that does not have
Sortableset totrue, Amazon Kendra returns an exception. The default isfalse.
-
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<Search.Builder,Search> - 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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-