Class Search
- java.lang.Object
-
- software.amazon.awssdk.services.kendra.model.Search
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Search.Builder,Search>
@Generated("software.amazon.awssdk:codegen") public final class Search extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Search.Builder,Search>
Provides information about how a custom index field is used during a search.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSearch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Search.Builderbuilder()Booleandisplayable()Determines whether the field is returned in the query response.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanfacetable()Indicates that the field can be used to create search facets, a count of results for each value in the field.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()Booleansearchable()Determines whether the field is used in the search.static Class<? extends Search.Builder>serializableBuilderClass()Booleansortable()Determines whether the field can be used to sort the results of a query.Search.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
facetable
public final Boolean 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
public final Boolean 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
public final Boolean 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
public final Boolean 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
public Search.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Search.Builder,Search>
-
builder
public static Search.Builder builder()
-
serializableBuilderClass
public static Class<? extends Search.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-