capabilities.work

Sync Data Source and Query

A 3-step recipe with Amazon Kendra. We can help you get access.

Recipe · 3 steps

Sync Data Source and Query

Start a sync job, wait for SUCCEEDED, then query the refreshed index.

  1. Start an on-demand synchronization job for the data source connector so it re-crawls and re-indexes the source repository.
  2. Poll the list of sync jobs until the most recent job leaves the SYNCING state and reports SUCCEEDED, confirming the crawl finished.
  3. Run the search query against the refreshed index so newly synced documents are reflected in the results.
What you'll need to have ready
  • indexId: The identifier of the index that owns the data source.
  • dataSourceId: The identifier of the data source to synchronize.
  • queryText: The search query to run once the sync completes.
For your developer

Arazzo workflow amazon-kendra:sync-data-source-and-query, 3 operations: StartDataSourceSyncJob → ListDataSourceSyncJobs → Query. Specs on APIs.io.