public static interface SortingConfiguration.Builder extends SdkPojo, CopyableBuilder<SortingConfiguration.Builder,SortingConfiguration>
| Modifier and Type | Method and Description |
|---|---|
SortingConfiguration.Builder |
documentAttributeKey(String documentAttributeKey)
The name of the document attribute used to sort the response.
|
SortingConfiguration.Builder |
sortOrder(SortOrder sortOrder)
The order that the results should be returned in.
|
SortingConfiguration.Builder |
sortOrder(String sortOrder)
The order that the results should be returned in.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSortingConfiguration.Builder documentAttributeKey(String documentAttributeKey)
The name of the document attribute used to sort the response. You can use any field 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 name of the document attribute used to sort the response. You can use any field 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
SortingConfiguration.Builder sortOrder(String sortOrder)
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.
SortingConfiguration.Builder sortOrder(SortOrder sortOrder)
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.
Copyright © 2021. All rights reserved.