kendra / Client / update_featured_results_set
update_featured_results_set#
- kendra.Client.update_featured_results_set(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.update_featured_results_set( IndexId='string', FeaturedResultsSetId='string', FeaturedResultsSetName='string', Description='string', Status='ACTIVE'|'INACTIVE', QueryTexts=[ 'string', ], FeaturedDocuments=[ { 'Id': 'string' }, ] )
- Parameters:
IndexId (string) –
[REQUIRED]
The identifier of the index used for featuring results.
FeaturedResultsSetId (string) –
[REQUIRED]
The identifier of the set of featured results that you want to update.
FeaturedResultsSetName (string) – A new name for the set of featured results.
Description (string) – A new description for the set of featured results.
Status (string) – You can set the status to
ACTIVE
orINACTIVE
. 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 isACTIVE
orINACTIVE
.QueryTexts (list) –
A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet.
(string) –
FeaturedDocuments (list) –
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.
(dict) –
A featured document. This document is displayed at the top of the search results page, placed above all other results for certain queries. If there’s an exact match of a query, then the document is featured in the search results.
Id (string) –
The identifier of the document to feature in the search results. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.
- Return type:
dict
- Returns:
Response Syntax
{ 'FeaturedResultsSet': { 'FeaturedResultsSetId': 'string', 'FeaturedResultsSetName': 'string', 'Description': 'string', 'Status': 'ACTIVE'|'INACTIVE', 'QueryTexts': [ 'string', ], 'FeaturedDocuments': [ { 'Id': 'string' }, ], 'LastUpdatedTimestamp': 123, 'CreationTimestamp': 123 } }
Response Structure
(dict) –
FeaturedResultsSet (dict) –
Information on the set of featured results. This includes the identifier of the featured results set, whether the featured results set is active or inactive, when the featured results set was last updated, and more.
FeaturedResultsSetId (string) –
The identifier of the set of featured results.
FeaturedResultsSetName (string) –
The name for the set of featured results.
Description (string) –
The description for the set of featured results.
Status (string) –
The current status of the set of featured results. When the value is
ACTIVE
, featured results are ready for use. You can still configure your settings before setting the status toACTIVE
. You can set the status toACTIVE
orINACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status isACTIVE
orINACTIVE
.QueryTexts (list) –
The list of queries for featuring results.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify ‘Kendra’, queries such as ‘How does kendra semantically rank results?’ will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
(string) –
FeaturedDocuments (list) –
The list of document IDs for the documents you want to feature at the top of the search results page. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.
You can add up to four featured documents. You can request to increase this limit by contacting Support.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify ‘Kendra’, queries such as ‘How does kendra semantically rank results?’ will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
(dict) –
A featured document. This document is displayed at the top of the search results page, placed above all other results for certain queries. If there’s an exact match of a query, then the document is featured in the search results.
Id (string) –
The identifier of the document to feature in the search results. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.
LastUpdatedTimestamp (integer) –
The Unix timestamp when the set of featured results was last updated.
CreationTimestamp (integer) –
The Unix timestamp when the set of featured results was created.
Exceptions