younifyd
Menu

Bulk stream (POST /_bulk/stream)

Bulk stream

POST/_bulk/stream

Use it in a workflow

  1. Add a step and choose the OpenSearch connector.
  2. Pick the Bulk stream (POST /_bulk/stream) action (under core).
  3. Fill in the fields below, then reference the result from later steps as {{bulkStreamPostBulkStream.response.data}}.

Request

Query parameters

_sourceoneOf

`true` or `false` to return the `_source` field or not, or a list of fields to return.

_source_excludesoneOf

A comma-separated list of source fields to exclude from the response.

_source_includesoneOf

A comma-separated list of source fields to include in the response.

batch_intervalstring

Specifies for how long bulk operations should be accumulated into a batch before sending the batch to data nodes.

batch_sizeinteger (int64)

Specifies how many bulk operations should be accumulated into a batch before sending the batch to data nodes.

pipelinestring

ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter.

refreshoneOf

If `true`, OpenSearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes. Valid values: `true`, `false`, `wait_for`.

require_aliasboolean

If `true`, the request's actions must target an index alias.

Default false

routingoneOf

A custom value used to route operations to a specific shard.

timeoutstring

Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.

typestring

Default document type for items which don't provide one.

wait_for_active_shardsoneOf

The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).

prettyboolean

Whether to pretty-format the returned JSON response.

Default false

humanboolean

Whether to return human-readable values for statistics.

Default false

error_traceboolean

Whether to include the stack trace of returned errors.

Default false

sourcestring

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

filter_pathoneOf

A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.

Response

Returns 200 with an object. Read it in later steps with {{bulkStreamPostBulkStream.response.data.<field>}}.

errorsboolean
itemsarray<object>
indexobject12 fields
createobject12 fields
updateobject12 fields
deleteobject12 fields
tookinteger (int64)
ingest_tookinteger (int64)
json
{
  "errors": false,
  "items": [
    {
      "index": {
        "_index": "string",
        "status": 0,
        "_type": "string",
        "_id": "string",
        "error": {
          "type": "string",
          "reason": "string",
          "stack_trace": "string",
          "caused_by": {},
          "root_cause": [
            {}
          ],
          "suppressed": [
            {}
          ],
          "header": {}
        },
        "_primary_term": 0,
        "result": "string",
        "_seq_no": 0,
        "_shards": {
          "failed": 0,
          "successful": 0,
          "total": 0,
          "failures": [
            {
              "reason": null,
              "shard": null,
              "primary": null,
              "index": null,
              "node": null,
              "status": null
            }
          ]
        },
        "_version": 0,
        "forced_refresh": false,
        "get": {
          "found": false,
          "fields": {},
          "_seq_no": 0,
          "_primary_term": 0,
          "_routing": "string",
          "_source": {}
        }
      },
      "create": {
        "_index": "string",
        "status": 0,
        "_type": "string",
        "_id": "string",
        "error": {
          "type": "string",
          "reason": "string",
          "stack_trace": "string",
          "caused_by": {},
          "root_cause": [
            {}
          ],
          "suppressed": [
            {}
          ],
          "header": {}
        },
        "_primary_term": 0,
        "result": "string",
        "_seq_no": 0,
        "_shards": {
          "failed": 0,
          "successful": 0,
          "total": 0,
          "failures": [
            {
              "reason": null,
              "shard": null,
              "primary": null,
              "index": null,
              "node": null,
              "status": null
            }
          ]
        },
        "_version": 0,
        "forced_refresh": false,
        "get": {
          "found": false,
          "fields": {},
          "_seq_no": 0,
          "_primary_term": 0,
          "_routing": "string",
          "_source": {}
        }
      },
      "update": {
        "_index": "string",
        "status": 0,
        "_type": "string",
        "_id": "string",
        "error": {
          "type": "string",
          "reason": "string",
          "stack_trace": "string",
          "caused_by": {},
          "root_cause": [
            {}
          ],
          "suppressed": [
            {}
          ],
          "header": {}
        },
        "_primary_term": 0,
        "result": "string",
        "_seq_no": 0,
        "_shards": {
          "failed": 0,
          "successful": 0,
          "total": 0,
          "failures": [
            {
              "reason": null,
              "shard": null,
              "primary": null,
              "index": null,
              "node": null,
              "status": null
            }
          ]
        },
        "_version": 0,
        "forced_refresh": false,
        "get": {
          "found": false,
          "fields": {},
          "_seq_no": 0,
          "_primary_term": 0,
          "_routing": "string",
          "_source": {}
        }
      },
      "delete": {
        "_index": "string",
        "status": 0,
        "_type": "string",
        "_id": "string",
        "error": {
          "type": "string",
          "reason": "string",
          "stack_trace": "string",
          "caused_by": {},
          "root_cause": [
            {}
          ],
          "suppressed": [
            {}
          ],
          "header": {}
        },
        "_primary_term": 0,
        "result": "string",
        "_seq_no": 0,
        "_shards": {
          "failed": 0,
          "successful": 0,
          "total": 0,
          "failures": [
            {
              "reason": null,
              "shard": null,
              "primary": null,
              "index": null,
              "node": null,
              "status": null
            }
          ]
        },
        "_version": 0,
        "forced_refresh": false,
        "get": {
          "found": false,
          "fields": {},
          "_seq_no": 0,
          "_primary_term": 0,
          "_routing": "string",
          "_source": {}
        }
      }
    }
  ],
  "took": 0,
  "ingest_took": 0
}

Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.