kendra / Client / clear_query_suggestions
clear_query_suggestions#
- kendra.Client.clear_query_suggestions(**kwargs)#
Clears existing query suggestions from an index.
This deletes existing suggestions only, not the queries in the query log. After you clear suggestions, Amazon Kendra learns new suggestions based on new queries added to the query log from the time you cleared suggestions. If you do not see any new suggestions, then please allow Amazon Kendra to collect enough queries to learn new suggestions.
ClearQuerySuggestions
is currently not supported in the Amazon Web Services GovCloud (US-West) region.See also: AWS API Documentation
Request Syntax
response = client.clear_query_suggestions( IndexId='string' )
- Parameters:
IndexId (string) –
[REQUIRED]
The identifier of the index you want to clear query suggestions from.
- Returns:
None
Exceptions
kendra.Client.exceptions.ValidationException
kendra.Client.exceptions.ResourceNotFoundException
kendra.Client.exceptions.ThrottlingException
kendra.Client.exceptions.ConflictException
kendra.Client.exceptions.AccessDeniedException
kendra.Client.exceptions.InternalServerException