public static final class CfnIndex.SearchProperty.Builder
extends java.lang.Object
CfnIndex.SearchProperty
Constructor and Description |
---|
Builder() |
public CfnIndex.SearchProperty.Builder displayable(java.lang.Boolean displayable)
CfnIndex.SearchProperty.getDisplayable()
displayable
- Determines whether the field is returned in the query response.
The default is true
.this
public CfnIndex.SearchProperty.Builder displayable(IResolvable displayable)
CfnIndex.SearchProperty.getDisplayable()
displayable
- Determines whether the field is returned in the query response.
The default is true
.this
public CfnIndex.SearchProperty.Builder facetable(java.lang.Boolean facetable)
CfnIndex.SearchProperty.getFacetable()
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
.this
public CfnIndex.SearchProperty.Builder facetable(IResolvable facetable)
CfnIndex.SearchProperty.getFacetable()
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
.this
public CfnIndex.SearchProperty.Builder searchable(java.lang.Boolean searchable)
CfnIndex.SearchProperty.getSearchable()
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.this
public CfnIndex.SearchProperty.Builder searchable(IResolvable searchable)
CfnIndex.SearchProperty.getSearchable()
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.this
public CfnIndex.SearchProperty.Builder sortable(java.lang.Boolean sortable)
CfnIndex.SearchProperty.getSortable()
sortable
- Indicates that the field can be used to sort the search results.
The default is false
.this
public CfnIndex.SearchProperty.Builder sortable(IResolvable sortable)
CfnIndex.SearchProperty.getSortable()
sortable
- Indicates that the field can be used to sort the search results.
The default is false
.this
public CfnIndex.SearchProperty build()
CfnIndex.SearchProperty
java.lang.NullPointerException
- if any required attribute was not provided