younifyd
Menu

Get

Get

GET/{index}/_doc/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

The unique identifier of the document.

indexstringrequired

The name of the index containing the document.

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 in the response.

_source_includesoneOf

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

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`, OpenSearch refreshes the affected shards to make this operation visible to search. If `false`, do nothing with refreshes.

routingoneOf

Target the specified primary shard.

stored_fieldsoneOf

List of stored fields to return as part of a hit. If no fields are specified, no stored fields are included in the response. If this field is specified, the `_source` parameter defaults to false.

versioninteger (int64)

Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.

version_typeoneOf

The specific version type: `internal`, `external`, `external_gte`.

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 a any. Read it in later steps with {{get.response.data.<field>}}.

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