update_featured_results_set
async
¶
update_featured_results_set(
index_id: IndexId,
featured_results_set_id: FeaturedResultsSetId,
*,
config_overrides: Optional[AsynckendraClientConfig] = None,
featured_results_set_name: Optional[FeaturedResultsSetName] = None,
description: Optional[FeaturedResultsSetDescription] = None,
status: Optional[FeaturedResultsSetStatus] = None,
query_texts: Optional[QueryTextList] = None,
featured_documents: Optional[FeaturedDocumentList] = None,
) -> UpdateFeaturedResultsSetResponse
Updates a set of featured results. Features results are placed above all other results for certain queries. You map specific queries to specific documents for featuring in the results. If a query contains an exact match of a query, then one or more specific documents are featured in the search results.
Parameters:
-
index_id(IndexId) –The identifier of the index used for featuring results.
-
featured_results_set_id(FeaturedResultsSetId) –The identifier of the set of featured results that you want to update.
-
featured_results_set_name(Optional[FeaturedResultsSetName], default:None) –A new name for the set of featured results.
-
description(Optional[FeaturedResultsSetDescription], default:None) –A new description for the set of featured results.
-
status(Optional[FeaturedResultsSetStatus], default:None) –You can set the status to
ACTIVEorINACTIVE. When the value isACTIVE, featured results are ready for use. You can still configure your settings before setting the status toACTIVE. The queries you specify for featured results must be unique per featured results set for each index, whether the status isACTIVEorINACTIVE. -
query_texts(Optional[QueryTextList], default:None) –A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet.
-
featured_documents(Optional[FeaturedDocumentList], default:None) –A list of document IDs for the documents you want to feature at the top of the search results page. For more information on the list of featured documents, see FeaturedResultsSet.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.
-
FeaturedResultsConflictException–An error message with a list of conflicting queries used across different sets of featured results. This occurred with the request for a new featured results set. Check that the queries you specified for featured results are unique per featured results set for each index.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Kendra service. Please wait a few minutes and try again, or contact Support for help.
-
ResourceNotFoundException–The resource you want to use doesn’t exist. Please check you have provided the correct resource and try again.
-
ThrottlingException–The request was denied due to request throttling. Please reduce the number of requests and try again.
-
ValidationException–The input fails to satisfy the constraints set by the Amazon Kendra service. Please provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kendra/_services/async_kendra.py
4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 | |