younifyd
Menu

Explain (POST)

Explain

POST/{index}/_explain/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

Defines the document ID.

indexstringrequired

Index names used to limit the request. Only a single index name can be provided to this parameter.

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.

_source_includesoneOf

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

analyze_wildcardboolean

If `true`, wildcard and prefix queries are analyzed.

Default false

analyzerstring

Analyzer to use for the query string. This parameter can only be used when the `q` query string parameter is specified.

default_operatorstring

The default operator for query string query: `AND` or `OR`.

dfstring

Field to use as default where no field prefix is given in the query string.

Default "_all"

lenientboolean

If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.

preferencestring

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

Default "random"

qstring

Query in the Lucene query string syntax.

routingoneOf

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

stored_fieldsoneOf

A comma-separated list of stored fields to return in the response.

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

_typestring

The type of document or resource.

_indexstring
_idstring

The unique identifier for a resource.

matchedboolean
explanationobject
descriptionstringrequired
detailsarray<object>
valuenumber (float)required
getany
json
{
  "_index": "string",
  "_id": "string",
  "matched": false,
  "_type": "string",
  "explanation": {
    "description": "string",
    "value": 0,
    "details": [
      {}
    ]
  },
  "get": null
}

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