@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Search.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Search.Builder |
builder() |
Boolean |
displayable()
Determines whether the field is returned in the query response.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
facetable()
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) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
Boolean |
searchable()
Determines whether the field is used in the search.
|
static Class<? extends Search.Builder> |
serializableBuilderClass() |
Boolean |
sortable()
Determines whether the field can be used to sort the results of a query.
|
Search.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 .
false .public Boolean searchable()
Determines whether the field is used in the search. If the Searchable field is true,
you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is
true for string fields and false for number and date fields.
Searchable field is
true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in
the search. The default is true for string fields and false for number and date
fields.public Boolean displayable()
Determines whether the field is returned in the query response. The default is true.
true.public 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 Sortable set to true, Amazon Kendra returns an exception. The default is
false.
Sortable set to true, Amazon Kendra returns an
exception. The default is false.public Search.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Search.Builder,Search>public static Search.Builder builder()
public static Class<? extends Search.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.