Document → Update
AI-generatedSummary
Update an existing OpenSearch document by sending selected fields or mapped input properties to its index and document ID. Each input item produces an update request; optionally, updates are sent through the bulk API in batches of up to 50.
Inputs
- Index ID (required) — ID of the index containing the document.
- Document ID (required) — ID of the document to update.
- Data to Send — Choose to define fields below or auto-map the incoming item’s JSON properties. Auto-mapping sends all input properties unless excluded in Inputs to Ignore.
- Fields to Send — When defining fields below, add field names and values to update.
- Inputs to Ignore — In auto-map mode, comma-separated input property names to omit.
- Bulk Update — When enabled, queues updates for the bulk API; requests are flushed in batches of up to 50.
- Refresh — Choose whether OpenSearch refreshes affected shards immediately, waits for a refresh, or does not refresh. Defaults to false.
Output shape
A list of n8n items, typically one per input item, containing the OpenSearch update response.
The node sends a partial document in the request body as {"doc": {...}} to the index’s _update endpoint. With Bulk Update enabled, output items contain the corresponding bulk response entries; bulk item errors are thrown unless Continue On Fail is enabled.