Elasticsearch · Arazzo Workflow
Elasticsearch Document Lifecycle
Version 1.0.0
Index a document by id, read it back, apply a partial update, and confirm the merged result.
Provider
Workflows
document-lifecycle
Index, read, partially update, and re-read a single document by id.
Writes a document at a caller-supplied id, verifies the persisted source, merges a partial document into it, and verifies the merged result and the resulting version number.
1
indexDocument
indexDocument
Index the document at the supplied id. Elasticsearch answers 201 when the document is new and 200 when it replaced an existing document at that id, so both are accepted.
2
readAfterIndex
getDocument
Read the document straight back to confirm exactly what was persisted before any update is attempted.
3
applyPartialUpdate
updateDocument
Merge the partial document into the stored source. Fields not named in the partial update are left untouched.
4
readAfterUpdate
getDocument
Read the document a second time to confirm the merge landed and to capture the version Elasticsearch incremented to.