Update
Elasticsearch Plugin – Update Action
Summary (SEO Meta Description):
The Update Action of the Elasticsearch Plugin modifies existing documents in an Elasticsearch index.
It supports scripted and partial updates for flexible data management.
Overview
The Update Action allows your workflow to update existing documents in an Elasticsearch index.
You can perform scripted updates for complex logic or partial updates to modify specific fields.
Typical Use Cases:
- Correct or enrich existing data records
- Update customer profiles or product information dynamically
- Increment counters or statistics in real time
- Apply custom logic to modify documents using Elasticsearch scripts
⚙️ Configuration
| Field | Description | Type / Options | 
|---|---|---|
| Label | Custom name for the action | String | 
| Select connection | Choose or create a secure Elasticsearch connection | Connection | 
| Index | Name of the Elasticsearch index containing the document to update | String | 
| Update type | Type of update: UNDEFINED, SCRIPTED, PARTIAL | Dropdown | 
| Schema | Optional schema to validate updated data | Schema | 
FAQ
Q: What’s the difference between update types?
A:
- SCRIPTED: Use an Elasticsearch script to update fields with custom logic.
- PARTIAL: Update only the specified fields without replacing the entire document.
- UNDEFINED: Default placeholder; choose SCRIPTED or PARTIAL for meaningful updates.
Q: Can I update multiple documents at once?
A: This action is designed for updating individual documents. For bulk updates, use Elasticsearch’s bulk APIs outside WeHub.
Q: Do I need to provide a schema?
A: No, but adding a schema helps validate the structure of the updated fields.
Q: Will partial updates overwrite other fields?
A: No. Only the specified fields are updated; all other document fields remain unchanged.
Keywords: WeHub Elasticsearch Plugin, Update Action, Scripted Update, Partial Update, Elasticsearch Document Management