Interface GetQuerySuggestionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetQuerySuggestionsRequest.Builder,
,GetQuerySuggestionsRequest> KendraRequest.Builder
,SdkBuilder<GetQuerySuggestionsRequest.Builder,
,GetQuerySuggestionsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetQuerySuggestionsRequest
-
Method Summary
Modifier and TypeMethodDescriptionattributeSuggestionsConfig
(Consumer<AttributeSuggestionsGetConfig.Builder> attributeSuggestionsConfig) Configuration information for the document fields/attributes that you want to base query suggestions on.attributeSuggestionsConfig
(AttributeSuggestionsGetConfig attributeSuggestionsConfig) Configuration information for the document fields/attributes that you want to base query suggestions on.The identifier of the index you want to get query suggestions from.maxSuggestionsCount
(Integer maxSuggestionsCount) The maximum number of query suggestions you want to show to your users.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The text of a user's query to generate query suggestions.suggestionTypes
(Collection<SuggestionType> suggestionTypes) The suggestions type to base query suggestions on.suggestionTypes
(SuggestionType... suggestionTypes) The suggestions type to base query suggestions on.suggestionTypesWithStrings
(String... suggestionTypes) The suggestions type to base query suggestions on.suggestionTypesWithStrings
(Collection<String> suggestionTypes) The suggestions type to base query suggestions on.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.kendra.model.KendraRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
indexId
The identifier of the index you want to get query suggestions from.
- Parameters:
indexId
- The identifier of the index you want to get query suggestions from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryText
The text of a user's query to generate query suggestions.
A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
- Parameters:
queryText
- The text of a user's query to generate query suggestions.A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxSuggestionsCount
The maximum number of query suggestions you want to show to your users.
- Parameters:
maxSuggestionsCount
- The maximum number of query suggestions you want to show to your users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionTypesWithStrings
The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.
If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Parameters:
suggestionTypes
- The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionTypesWithStrings
The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.
If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Parameters:
suggestionTypes
- The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionTypes
The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.
If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Parameters:
suggestionTypes
- The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionTypes
The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.
If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Parameters:
suggestionTypes
- The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeSuggestionsConfig
GetQuerySuggestionsRequest.Builder attributeSuggestionsConfig(AttributeSuggestionsGetConfig attributeSuggestionsConfig) Configuration information for the document fields/attributes that you want to base query suggestions on.
- Parameters:
attributeSuggestionsConfig
- Configuration information for the document fields/attributes that you want to base query suggestions on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeSuggestionsConfig
default GetQuerySuggestionsRequest.Builder attributeSuggestionsConfig(Consumer<AttributeSuggestionsGetConfig.Builder> attributeSuggestionsConfig) Configuration information for the document fields/attributes that you want to base query suggestions on.
This is a convenience method that creates an instance of theAttributeSuggestionsGetConfig.Builder
avoiding the need to create one manually viaAttributeSuggestionsGetConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributeSuggestionsConfig(AttributeSuggestionsGetConfig)
.- Parameters:
attributeSuggestionsConfig
- a consumer that will call methods onAttributeSuggestionsGetConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
GetQuerySuggestionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetQuerySuggestionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-