public static interface GetQuerySuggestionsRequest.Builder extends KendraRequest.Builder, SdkPojo, CopyableBuilder<GetQuerySuggestionsRequest.Builder,GetQuerySuggestionsRequest>
| Modifier and Type | Method and Description |
|---|---|
GetQuerySuggestionsRequest.Builder |
attributeSuggestionsConfig(AttributeSuggestionsGetConfig attributeSuggestionsConfig)
Configuration information for the document fields/attributes that you want to base query suggestions on.
|
default GetQuerySuggestionsRequest.Builder |
attributeSuggestionsConfig(Consumer<AttributeSuggestionsGetConfig.Builder> attributeSuggestionsConfig)
Configuration information for the document fields/attributes that you want to base query suggestions on.
|
GetQuerySuggestionsRequest.Builder |
indexId(String indexId)
The identifier of the index you want to get query suggestions from.
|
GetQuerySuggestionsRequest.Builder |
maxSuggestionsCount(Integer maxSuggestionsCount)
The maximum number of query suggestions you want to show to your users.
|
GetQuerySuggestionsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
GetQuerySuggestionsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
GetQuerySuggestionsRequest.Builder |
queryText(String queryText)
The text of a user's query to generate query suggestions.
|
GetQuerySuggestionsRequest.Builder |
suggestionTypes(Collection<SuggestionType> suggestionTypes)
The suggestions type to base query suggestions on.
|
GetQuerySuggestionsRequest.Builder |
suggestionTypes(SuggestionType... suggestionTypes)
The suggestions type to base query suggestions on.
|
GetQuerySuggestionsRequest.Builder |
suggestionTypesWithStrings(Collection<String> suggestionTypes)
The suggestions type to base query suggestions on.
|
GetQuerySuggestionsRequest.Builder |
suggestionTypesWithStrings(String... suggestionTypes)
The suggestions type to base query suggestions on.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetQuerySuggestionsRequest.Builder indexId(String indexId)
The identifier of the index you want to get query suggestions from.
indexId - The identifier of the index you want to get query suggestions from.GetQuerySuggestionsRequest.Builder queryText(String 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.
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.
GetQuerySuggestionsRequest.Builder maxSuggestionsCount(Integer maxSuggestionsCount)
The maximum number of query suggestions you want to show to your users.
maxSuggestionsCount - The maximum number of query suggestions you want to show to your users.GetQuerySuggestionsRequest.Builder suggestionTypesWithStrings(Collection<String> 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.
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.
GetQuerySuggestionsRequest.Builder suggestionTypesWithStrings(String... 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.
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.
GetQuerySuggestionsRequest.Builder suggestionTypes(Collection<SuggestionType> 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.
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.
GetQuerySuggestionsRequest.Builder suggestionTypes(SuggestionType... 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.
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.
GetQuerySuggestionsRequest.Builder attributeSuggestionsConfig(AttributeSuggestionsGetConfig attributeSuggestionsConfig)
Configuration information for the document fields/attributes that you want to base query suggestions on.
attributeSuggestionsConfig - Configuration information for the document fields/attributes that you want to base query suggestions
on.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 via AttributeSuggestionsGetConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to attributeSuggestionsConfig(AttributeSuggestionsGetConfig).
attributeSuggestionsConfig - a consumer that will call methods on AttributeSuggestionsGetConfig.BuilderattributeSuggestionsConfig(AttributeSuggestionsGetConfig)GetQuerySuggestionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderGetQuerySuggestionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.