younifyd
Menu

Get a document's source

Get a document's source

GET/{index}/_source/{id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get a document's source action (under document).
  3. Fill in the fields below, then reference the result from later steps as {{getADocumentSSource.response.data}}.

Request

Path parameters

indexstringrequired

The name of the index that contains the document.

idstringrequired

A unique document identifier.

Query parameters

preferencestring

The node or shard the operation should be performed on. By default, the operation is randomized between the shard replicas.

realtimeboolean

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

refreshboolean

If `true`, the request refreshes the relevant shards before retrieving the document. Setting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing).

routingoneOf

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

_sourceoneOf

Indicates whether to return the `_source` field (`true` or `false`) or lists the 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.

versionnumber

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

version_typestring

The version type.

One ofinternalexternalexternal_gte

Response

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

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

Get a document's source — Elasticsearch — Documentation