Resolve Index by Name and Query
A 3-step recipe with Amazon Kendra. We can help you get access.
Recipe · 3 steps
Resolve Index by Name and Query
with Amazon Kendra
Find an index by name, confirm it is ACTIVE, then query it.
- List the account indexes and capture the id of the index whose name matches the supplied indexName.
- Confirm the matched index is ACTIVE before sending query traffic, so queries are not issued against an index that is still building or failed.
- Run the search query against the resolved, active index and return the ranked result items.
What you'll need to have ready
- indexName: The name of the index to search.
- queryText: The search query to run against the resolved index.
- pageSize: Optional number of results to return per page.
For your developer
Arazzo workflow amazon-kendra:resolve-index-and-query, 3 operations: ListIndexes → DescribeIndex → Query. Specs on APIs.io.