capabilities.work

Bulk Load and Verify

A 4-step recipe with Elasticsearch. We can help you get access.

Recipe · 4 steps

Bulk Load and Verify

Submit a bulk NDJSON payload and confirm the documents actually landed.

  1. Read cluster health before a volume write, so a red cluster stops the load rather than absorbing a partial ingest.
  2. Submit the NDJSON payload. A 200 here only means the batch was processed, not that every item succeeded, so the errors flag is captured as an output for the caller to assert on.
  3. Count the documents now present in the index with a match_all query, giving an independent confirmation that the bulk load landed.
  4. Read the cat indices view with verbose headers for a human-readable summary of the index health, document count, and store size after the load.
What you'll need to have ready
  • index: The index the bulk payload targets, used for verification.
  • ndjson: The newline-delimited bulk body, alternating action and source lines, terminated by a trailing newline.
For your developer

Arazzo workflow elasticsearch:bulk-load-and-verify, 4 operations: clusterHealth → bulk → searchDsl → catIndices. Specs on APIs.io.