Index Document
elasticsearch.index_document
ActionDatabases & warehousesconnection required
Calls the Elasticsearch API POST /{index}/_doc or PUT /{index}/_doc/{id}.
Index (create or overwrite) a document in an Elasticsearch index.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Elasticsearch
- Secret shape
- an API key, or {"username", "password"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
index Target index. Supports {{ }}. | string | Yes | — | — | — |
document The document to index (JSON). | object | Yes | — | — | — |
doc_id Document id (blank = auto-generate). | string | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
id | string | — |
result | string | — |
{
"id": "",
"ok": false,
"result": ""
}Related Elasticsearch nodes
See Index Document run in a workflow.
In a technical demo we add the Elasticsearch connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.