bulk_index
Index many documents into one Elasticsearch index in a single request to reduce indexing time and network overhead. Define an optional id field for document IDs; receive success count and first error details.
Instructions
Bulk index many documents into one index in a single request. Pass documents as a JSON array of objects; each becomes an index action. Optional id_field names a field to use as the document id. Reports how many succeeded and the first few errors. Much faster than index_document in a loop. Requires writes enabled and confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| confirm | No | ||
| refresh | No | ||
| id_field | No | ||
| documents | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |