Skip to main content

featured_results_sets

Creates, updates, deletes, gets or lists a featured_results_sets resource.

Overview

Namefeatured_results_sets
TypeResource
Idaws.kendra.featured_results_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestampinteger (int64)The Unix timestamp when the set of the featured results was created.
descriptionstringThe description for the set of featured results. (pattern: <code>^\P{C}*$</code>)
featured_documents_missingarrayThe list of document IDs that don't exist but you have specified as featured documents. Amazon Kendra cannot feature these documents if they don't exist in the index. You can check the status of a document and its ID or check for documents with status errors using the BatchGetDocumentStatus API.
featured_documents_with_metadataarrayThe list of document IDs for the documents you want to feature with their metadata information. For more information on the list of featured documents, see FeaturedResultsSet.
featured_results_set_idstringThe identifier of the set of featured results. (pattern: <code>^[a-zA-Z-0-9]*</code>)
featured_results_set_namestringThe name for the set of featured results. (pattern: <code>[a-zA-Z0-9][ a-zA-Z0-9_-]*</code>)
last_updated_timestampinteger (int64)The timestamp when the set of featured results was last updated.
query_textsarrayThe list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet.
statusstringThe 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 to ACTIVE. You can set the status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE. (ACTIVE, INACTIVE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_featured_results_setselectregionGets information about a set of featured results. Features results are placed above all other results for certain queries. If there's an exact match of a query, then one or more specific documents are featured in the search results.
list_featured_results_setsselectregionLists all your sets of featured results for a given index. Features results are placed above all other results for certain queries. If there's an exact match of a query, then one or more specific documents are featured in the search results.
create_featured_results_setinsertregion, IndexId, FeaturedResultsSetNameCreates a set of featured results to display at the top of the search results page. Featured 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, then one or more specific documents are featured in the search results. You can create up to 50 sets of featured results per index. You can request to increase this limit by contacting Support.
update_featured_results_setupdateregion, IndexId, FeaturedResultsSetIdUpdates 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.
batch_delete_featured_results_setexecregion, IndexId, FeaturedResultsSetIdsRemoves one or more sets of featured results. Features results are placed above all other results for certain queries. If there's an exact match of a query, then one or more specific documents are featured in the search results.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a set of featured results. Features results are placed above all other results for certain queries. If there's an exact match of a query, then one or more specific documents are featured in the search results.

SELECT
creation_timestamp,
description,
featured_documents_missing,
featured_documents_with_metadata,
featured_results_set_id,
featured_results_set_name,
last_updated_timestamp,
query_texts,
status
FROM aws.kendra.featured_results_sets
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a set of featured results to display at the top of the search results page. Featured 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, then one or more specific documents are featured in the search results. You can create up to 50 sets of featured results per index. You can request to increase this limit by contacting Support.

INSERT INTO aws.kendra.featured_results_sets (
IndexId,
FeaturedResultsSetName,
Description,
ClientToken,
Status,
QueryTexts,
FeaturedDocuments,
Tags,
region
)
SELECT
'{{ IndexId }}' /* required */,
'{{ FeaturedResultsSetName }}' /* required */,
'{{ Description }}',
'{{ ClientToken }}',
'{{ Status }}',
'{{ QueryTexts }}',
'{{ FeaturedDocuments }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
featured_results_set
;

UPDATE examples

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.

UPDATE aws.kendra.featured_results_sets
SET
IndexId = '{{ IndexId }}',
FeaturedResultsSetId = '{{ FeaturedResultsSetId }}',
FeaturedResultsSetName = '{{ FeaturedResultsSetName }}',
Description = '{{ Description }}',
Status = '{{ Status }}',
QueryTexts = '{{ QueryTexts }}',
FeaturedDocuments = '{{ FeaturedDocuments }}'
WHERE
region = '{{ region }}' --required
AND IndexId = '{{ IndexId }}' --required
AND FeaturedResultsSetId = '{{ FeaturedResultsSetId }}' --required
RETURNING
featured_results_set;

Lifecycle Methods

Removes one or more sets of featured results. Features results are placed above all other results for certain queries. If there's an exact match of a query, then one or more specific documents are featured in the search results.

EXEC aws.kendra.featured_results_sets.batch_delete_featured_results_set
@region='{{ region }}' --required
@@json=
'{
"IndexId": "{{ IndexId }}",
"FeaturedResultsSetIds": "{{ FeaturedResultsSetIds }}"
}'
;