younifyd
Menu

Explain a document match result (GET)

Explain a document match result

GET/{index}/_explain/{id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Explain a document match result (GET) action (under search).
  3. Fill in the fields below, then reference the result from later steps as {{explainADocumentMatchResultGet.response.data}}.

Request

Path parameters

indexstringrequired

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

idstringrequired

The document identifier.

Query parameters

analyzerstring

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

analyze_wildcardboolean

If `true`, wildcard and prefix queries are analyzed. This parameter can be used only when the `q` query string parameter is specified.

default_operatorstring

The default operator for query string query: `and` or `or`. This parameter can be used only when the `q` query string parameter is specified.

One ofandANDorOR

dfstring

The field to use as default where no field prefix is given in the query string. This parameter can be used only when the `q` query string parameter is specified.

lenientboolean

If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. This parameter can be used only when the `q` query string parameter is specified.

preferencestring

The node or shard the operation should be performed on. It is random by default.

routingoneOf

A 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. If the `_source` parameter is `false`, this parameter is ignored.

_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

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

qstring

The query in the Lucene query string syntax.

Response

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

_indexany
_idany
matchedboolean
explanationany
getany
json
{
  "_index": null,
  "_id": null,
  "matched": false,
  "explanation": null,
  "get": null
}

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

Explain a document match result (GET) — Elasticsearch — Documentation