CollapseConfiguration
¶
Used by
-
AsynckendraClient Operationsquery -
kendraClient Operationsquery
Source code in docs_src/capo_kendra/types/collapse_configuration.py
document_attribute_key
instance-attribute
¶
document_attribute_key: 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".
expand_configuration
instance-attribute
¶
expand_configuration: NotRequired[ExpandConfiguration]
Provides configuration information to customize expansion options for a collapsed group.
missing_attribute_key_strategy
instance-attribute
¶
missing_attribute_key_strategy: NotRequired[MissingAttributeKeyStrategy]
Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
-
Choose to
COLLAPSEall documents with null or missing values in one group. This is the default configuration. -
Choose to
IGNOREdocuments with null or missing values. Ignored documents will not appear in query results. -
Choose to
EXPANDeach document with a null or missing value into a group of its own.
sorting_configurations
instance-attribute
¶
sorting_configurations: NotRequired[SortingConfigurationList]
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.