public static interface CollapseConfiguration.Builder extends SdkPojo, CopyableBuilder<CollapseConfiguration.Builder,CollapseConfiguration>
| Modifier and Type | Method and Description |
|---|---|
CollapseConfiguration.Builder |
documentAttributeKey(String documentAttributeKey)
The document attribute used to group search results.
|
CollapseConfiguration.Builder |
expand(Boolean expand)
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.
|
CollapseConfiguration.Builder |
expandConfiguration(ExpandConfiguration expandConfiguration)
Provides configuration information to customize expansion options for a collapsed group.
|
CollapseConfiguration.Builder |
missingAttributeKeyStrategy(MissingAttributeKeyStrategy missingAttributeKeyStrategy)
Specifies the behavior for documents without a value for the collapse attribute.
|
CollapseConfiguration.Builder |
missingAttributeKeyStrategy(String missingAttributeKeyStrategy)
Specifies the behavior for documents without a value for the collapse attribute.
|
CollapseConfiguration.Builder |
sortingConfigurations(Collection<SortingConfiguration> sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a
collapsed group.
|
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.
|
CollapseConfiguration.Builder |
sortingConfigurations(SortingConfiguration... sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a
collapsed group.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCollapseConfiguration.Builder documentAttributeKey(String 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".
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".CollapseConfiguration.Builder sortingConfigurations(Collection<SortingConfiguration> sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
sortingConfigurations - A prioritized list of document attributes/fields that determine the primary document among those in a
collapsed group.CollapseConfiguration.Builder sortingConfigurations(SortingConfiguration... sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
sortingConfigurations - A prioritized list of document attributes/fields that determine the primary document among those in a
collapsed group.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 via SortingConfiguration.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #sortingConfigurations(List.
sortingConfigurations - a consumer that will call methods on
SortingConfiguration.Builder#sortingConfigurations(java.util.Collection) CollapseConfiguration.Builder missingAttributeKeyStrategy(String 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.
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.
MissingAttributeKeyStrategy,
MissingAttributeKeyStrategyCollapseConfiguration.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.
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.
MissingAttributeKeyStrategy,
MissingAttributeKeyStrategyCollapseConfiguration.Builder expand(Boolean expand)
Specifies whether to expand the collapsed results.
expand - Specifies whether to expand the collapsed results.CollapseConfiguration.Builder expandConfiguration(ExpandConfiguration expandConfiguration)
Provides configuration information to customize expansion options for a collapsed group.
expandConfiguration - Provides configuration information to customize expansion options for a collapsed group.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 via ExpandConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to expandConfiguration(ExpandConfiguration).
expandConfiguration - a consumer that will call methods on ExpandConfiguration.BuilderexpandConfiguration(ExpandConfiguration)Copyright © 2023. All rights reserved.