Refresh Documents
A 3-step recipe with Amazon Kendra. We can help you get access.
Recipe · 3 steps
Refresh Documents
with Amazon Kendra
Delete stale documents, put refreshed versions, and wait for INDEXED.
- Remove the stale document ids from the index so the refreshed versions replace them cleanly rather than coexisting.
- Upload the refreshed documents to the index for asynchronous re-indexing.
- Poll the status of the refreshed documents until they leave PROCESSING and report INDEXED, confirming the refresh is searchable.
What you'll need to have ready
- indexId: The identifier of the index to refresh documents in.
- documentIdList: The list of stale document ids to remove first.
- documents: The refreshed documents to add to the index.
- documentInfoList: DocumentInfo objects identifying the refreshed documents to poll status for.
For your developer
Arazzo workflow amazon-kendra:refresh-documents, 3 operations: BatchDeleteDocument → BatchPutDocument → BatchGetDocumentStatus. Specs on APIs.io.