Interface Search.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Search.Builder,Search>,SdkBuilder<Search.Builder,Search>,SdkPojo
- Enclosing class:
- Search
public static interface Search.Builder extends SdkPojo, CopyableBuilder<Search.Builder,Search>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Search.Builderdisplayable(Boolean displayable)Determines whether the field is returned in the query response.Search.Builderfacetable(Boolean facetable)Indicates that the field can be used to create search facets, a count of results for each value in the field.Search.Buildersearchable(Boolean searchable)Determines whether the field is used in the search.Search.Buildersortable(Boolean sortable)Determines whether the field can be used to sort the results of a query.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
facetable
Search.Builder facetable(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.- Parameters:
facetable- Indicates that the field can be used to create search facets, a count of results for each value in the field. The default isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchable
Search.Builder searchable(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.- Parameters:
searchable- Determines whether the field is used in the search. If theSearchablefield 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:
- Returns a reference to this object so that method calls can be chained together.
-
displayable
Search.Builder displayable(Boolean displayable)
Determines whether the field is returned in the query response. The default is
true.- Parameters:
displayable- Determines whether the field is returned in the query response. The default istrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortable
Search.Builder sortable(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.- Parameters:
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 haveSortableset totrue, Amazon Kendra returns an exception. The default isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-