Ingest Documents and Query
A 3-step recipe with Amazon Kendra. We can help you get access.
Recipe · 3 steps
Ingest Documents and Query
with Amazon Kendra
Batch put documents, wait for indexing, then query the index.
- Submit the batch of documents directly to the index. Documents are accepted for asynchronous indexing and begin in the PROCESSING state.
- Poll the indexing status of the submitted documents until they leave the PROCESSING state and report INDEXED so they are guaranteed to be searchable.
- Run the search query against the index now that the submitted documents are indexed and returnable in results.
What you'll need to have ready
- indexId: The identifier of the target index.
- documents: One or more documents to add to the index.
- documentInfoList: A list of DocumentInfo objects identifying the documents to check status for.
- queryText: The search query to run once the documents are indexed.
For your developer
Arazzo workflow amazon-kendra:ingest-documents-and-query, 3 operations: BatchPutDocument → BatchGetDocumentStatus → Query. Specs on APIs.io.