v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465566486.4 KB

Fetches the queries that are suggested to your users.

GetQuerySuggestions is currently not supported in the Amazon Web Services GovCloud (US-West) region.

post/#X-Amz-Target=AWSKendraFrontendService.GetQuerySuggestions

Headers

X-Amz-Target'AWSKendraFrontendService.GetQuerySuggestions' required

Request body

IndexIdstring required

The identifier of the index you want to get query suggestions from.

QueryTextstring required
<p>The text of a user's query to generate query suggestions.</p> <p>A query is suggested if the query prefix matches what a user starts to type as their query.</p> <p>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.</p>
MaxSuggestionsCountinteger

The maximum number of query suggestions you want to show to your users.

Response

Success

QuerySuggestionsIdstring

The identifier for a list of query suggestions for an index.