update_featured_results_set
¶
update_featured_results_set(
index_id: IndexId,
featured_results_set_id: FeaturedResultsSetId,
*,
config_overrides: Optional[kendraClientConfig] = 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/kendra.py
4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 | |