/AWS1/CL_KNDCOLLAPSECONF¶
Specifies how to group results by document attribute value, and how to display them collapsed/expanded under a designated primary document for each group.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_documentattributekey TYPE /AWS1/KNDDOCUMENTATTRIBUTEKEY /AWS1/KNDDOCUMENTATTRIBUTEKEY¶
The document attribute used to group search results. You can use any attribute that has the
Sortableflag set to true. You can also sort by any of the following built-in attributes:"_category","_created_at", "_last_updated_at", "_version", "_view_count".
Optional arguments:¶
it_sortingconfigurations TYPE /AWS1/CL_KNDSORTINGCONF=>TT_SORTINGCONFIGURATIONLIST TT_SORTINGCONFIGURATIONLIST¶
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
iv_missingattrkeystrategy TYPE /AWS1/KNDMISSINGATTRKEYSTRAG /AWS1/KNDMISSINGATTRKEYSTRAG¶
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.
iv_expand TYPE /AWS1/KNDBOOLEAN /AWS1/KNDBOOLEAN¶
Specifies whether to expand the collapsed results.
io_expandconfiguration TYPE REF TO /AWS1/CL_KNDEXPANDCONF /AWS1/CL_KNDEXPANDCONF¶
Provides configuration information to customize expansion options for a collapsed group.
Queryable Attributes¶
DocumentAttributeKey¶
The document attribute used to group search results. You can use any attribute that has the
Sortableflag set to true. You can also sort by any of the following built-in attributes:"_category","_created_at", "_last_updated_at", "_version", "_view_count".
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DOCUMENTATTRIBUTEKEY() |
Getter for DOCUMENTATTRIBUTEKEY, with configurable default |
ASK_DOCUMENTATTRIBUTEKEY() |
Getter for DOCUMENTATTRIBUTEKEY w/ exceptions if field has n |
HAS_DOCUMENTATTRIBUTEKEY() |
Determine if DOCUMENTATTRIBUTEKEY has a value |
SortingConfigurations¶
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SORTINGCONFIGURATIONS() |
Getter for SORTINGCONFIGURATIONS, with configurable default |
ASK_SORTINGCONFIGURATIONS() |
Getter for SORTINGCONFIGURATIONS w/ exceptions if field has |
HAS_SORTINGCONFIGURATIONS() |
Determine if SORTINGCONFIGURATIONS has a value |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MISSINGATTRKEYSTRATEGY() |
Getter for MISSINGATTRIBUTEKEYSTRATEGY, with configurable de |
ASK_MISSINGATTRKEYSTRATEGY() |
Getter for MISSINGATTRIBUTEKEYSTRATEGY w/ exceptions if fiel |
HAS_MISSINGATTRKEYSTRATEGY() |
Determine if MISSINGATTRIBUTEKEYSTRATEGY has a value |
Expand¶
Specifies whether to expand the collapsed results.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_EXPAND() |
Getter for EXPAND |
ExpandConfiguration¶
Provides configuration information to customize expansion options for a collapsed group.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_EXPANDCONFIGURATION() |
Getter for EXPANDCONFIGURATION |