Interface SortingConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SortingConfiguration.Builder,SortingConfiguration>,SdkBuilder<SortingConfiguration.Builder,SortingConfiguration>,SdkPojo
- Enclosing class:
- SortingConfiguration
public static interface SortingConfiguration.Builder extends SdkPojo, CopyableBuilder<SortingConfiguration.Builder,SortingConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SortingConfiguration.BuilderdocumentAttributeKey(String documentAttributeKey)The name of the document attribute used to sort the response.SortingConfiguration.BuildersortOrder(String sortOrder)The order that the results should be returned in.SortingConfiguration.BuildersortOrder(SortOrder sortOrder)The order that the results should be returned in.-
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 Detail
-
documentAttributeKey
SortingConfiguration.Builder documentAttributeKey(String documentAttributeKey)
The name of the document attribute used to sort the response. You can use any field 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
- Parameters:
documentAttributeKey- The name of the document attribute used to sort the response. You can use any field that has theSortableflag 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.
-
-
sortOrder
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.
-
sortOrder
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.
-
-