Interface CollapseConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CollapseConfiguration.Builder,
,CollapseConfiguration> SdkBuilder<CollapseConfiguration.Builder,
,CollapseConfiguration> SdkPojo
- Enclosing class:
CollapseConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondocumentAttributeKey
(String documentAttributeKey) The document attribute used to group search results.Specifies whether to expand the collapsed results.default CollapseConfiguration.Builder
expandConfiguration
(Consumer<ExpandConfiguration.Builder> expandConfiguration) Provides configuration information to customize expansion options for a collapsed group.expandConfiguration
(ExpandConfiguration expandConfiguration) Provides configuration information to customize expansion options for a collapsed group.missingAttributeKeyStrategy
(String missingAttributeKeyStrategy) Specifies the behavior for documents without a value for the collapse attribute.missingAttributeKeyStrategy
(MissingAttributeKeyStrategy missingAttributeKeyStrategy) Specifies the behavior for documents without a value for the collapse attribute.sortingConfigurations
(Collection<SortingConfiguration> sortingConfigurations) A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.sortingConfigurations
(Consumer<SortingConfiguration.Builder>... sortingConfigurations) A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.sortingConfigurations
(SortingConfiguration... sortingConfigurations) A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.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 Details
-
documentAttributeKey
The document attribute used to group search results. You can use any attribute that has the
Sortable
flag set to true. You can also sort by any of the following built-in attributes:"_category","_created_at", "_last_updated_at", "_version", "_view_count".- Parameters:
documentAttributeKey
- The document attribute used to group search results. You can use any attribute that has theSortable
flag set to true. You can also sort by any of the following built-in attributes:"_category","_created_at", "_last_updated_at", "_version", "_view_count".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortingConfigurations
CollapseConfiguration.Builder sortingConfigurations(Collection<SortingConfiguration> sortingConfigurations) A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
- Parameters:
sortingConfigurations
- A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortingConfigurations
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
- Parameters:
sortingConfigurations
- A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortingConfigurations
CollapseConfiguration.Builder sortingConfigurations(Consumer<SortingConfiguration.Builder>... sortingConfigurations) A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
This is a convenience method that creates an instance of theSortingConfiguration.Builder
avoiding the need to create one manually viaSortingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosortingConfigurations(List<SortingConfiguration>)
.- Parameters:
sortingConfigurations
- a consumer that will call methods onSortingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
missingAttributeKeyStrategy
Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
-
Choose to
COLLAPSE
all documents with null or missing values in one group. This is the default configuration. -
Choose to
IGNORE
documents with null or missing values. Ignored documents will not appear in query results. -
Choose to
EXPAND
each document with a null or missing value into a group of its own.
- Parameters:
missingAttributeKeyStrategy
- Specifies the behavior for documents without a value for the collapse attribute.Amazon Kendra offers three customization options:
-
Choose to
COLLAPSE
all documents with null or missing values in one group. This is the default configuration. -
Choose to
IGNORE
documents with null or missing values. Ignored documents will not appear in query results. -
Choose to
EXPAND
each document with a null or missing value into a group of its own.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
missingAttributeKeyStrategy
CollapseConfiguration.Builder missingAttributeKeyStrategy(MissingAttributeKeyStrategy missingAttributeKeyStrategy) Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
-
Choose to
COLLAPSE
all documents with null or missing values in one group. This is the default configuration. -
Choose to
IGNORE
documents with null or missing values. Ignored documents will not appear in query results. -
Choose to
EXPAND
each document with a null or missing value into a group of its own.
- Parameters:
missingAttributeKeyStrategy
- Specifies the behavior for documents without a value for the collapse attribute.Amazon Kendra offers three customization options:
-
Choose to
COLLAPSE
all documents with null or missing values in one group. This is the default configuration. -
Choose to
IGNORE
documents with null or missing values. Ignored documents will not appear in query results. -
Choose to
EXPAND
each document with a null or missing value into a group of its own.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
expand
Specifies whether to expand the collapsed results.
- Parameters:
expand
- Specifies whether to expand the collapsed results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expandConfiguration
Provides configuration information to customize expansion options for a collapsed group.
- Parameters:
expandConfiguration
- Provides configuration information to customize expansion options for a collapsed group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expandConfiguration
default CollapseConfiguration.Builder expandConfiguration(Consumer<ExpandConfiguration.Builder> expandConfiguration) Provides configuration information to customize expansion options for a collapsed group.
This is a convenience method that creates an instance of theExpandConfiguration.Builder
avoiding the need to create one manually viaExpandConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexpandConfiguration(ExpandConfiguration)
.- Parameters:
expandConfiguration
- a consumer that will call methods onExpandConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-