OpenSearch icon

OpenSearch

Consume the OpenSearch API

Document → Create

AI-generated

Summary

Create documents in an OpenSearch index from each incoming item, using manually defined fields or mapped input data. Optionally set a document ID, routing, timeout, pipeline, refresh behavior, and bulk processing.

Inputs

  • Index ID (required) — ID of the index to add the document to.
  • Data to Send — Choose to define fields below or copy properties from each incoming item. For automatic mapping, optionally list comma-separated input properties to ignore; otherwise, all input properties are sent.
  • Fields to Send — When defining data below, add field name and value pairs. Values are configured as strings.
  • Additional Fields — Optionally set a document ID, routing value, or timeout. Supplying a document ID uses a PUT request to that document path; without one, OpenSearch assigns the ID via POST.
  • Options — Bulk Create sends documents through the bulk API; Pipeline ID selects preprocessing, and Refresh controls when the write becomes visible to search.

Output shape

One output item per processed input item, containing the OpenSearch response for that created document.

With Bulk Create enabled, results are returned from bulk API item responses, in input order. Bulk requests are sent in batches of up to 50 documents. Each output retains its input item linkage; API errors fail the operation unless Continue On Fail is enabled.

Links

Discussion