younifyd
Menu

Mget (POST /{index}/_mget)

Mget

POST/{index}/_mget

Use it in a workflow

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

Request

Path parameters

indexstringrequired

The name of the index to retrieve documents from when `ids` are specified, or when a document in the `docs` array does not specify an index.

Query parameters

_sourceoneOf

Set to `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.

preferencestring

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

Default "random"

realtimeboolean

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

refreshoneOf

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

routingoneOf

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

stored_fieldsoneOf

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

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 {{mgetPostIndexMget.response.data.<field>}}.

docsarray<oneOf>
json
{
  "docs": [
    null
  ]
}

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

Mget (POST /{index}/_mget) — OpenSearch — Documentation