younifyd
Menu

Get multiple documents (GET /_mget)

Get multiple documents

GET/_mget

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get multiple documents (GET /_mget) action (under document).
  3. Fill in the fields below, then reference the result from later steps as {{getMultipleDocumentsGetMget.response.data}}.

Request

Query parameters

preferencestring

Specifies the node or shard the operation should be performed on. Random by default.

realtimeboolean

If `true`, the request is real-time as opposed to near-real-time.

refreshboolean

If `true`, the request refreshes relevant shards before retrieving documents.

routingoneOf

Custom value used to route operations to a specific shard.

_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. You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter.

_source_includesoneOf

A comma-separated list of source fields to include in the response. If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the `_source_excludes` query parameter. If the `_source` parameter is `false`, this parameter is ignored.

stored_fieldsoneOf

If `true`, retrieves the document fields stored in the index rather than the document `_source`.

Response

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

docsarray<oneOf>

The response includes a docs array that contains the documents in the order specified in the request. The structure of the returned documents is similar to that returned by the get API. If there is a failure getting a particular document, the error is included in place of the document.

json
{
  "docs": [
    null
  ]
}

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

Get multiple documents (GET /_mget) — Elasticsearch — Documentation