younifyd
Menu

Get multiple term vectors (POST /_mtermvectors)

Get multiple term vectors

POST/_mtermvectors

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get multiple term vectors (POST /_mtermvectors) action (under document).
  3. Fill in the fields below, then reference the result from later steps as {{getMultipleTermVectorsPostMtermvectors.response.data}}.

Request

Query parameters

idsarray<string>

A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body

fieldsoneOf

A comma-separated list or wildcard expressions of fields to include in the statistics. It is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.

field_statisticsboolean

If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies.

offsetsboolean

If `true`, the response includes term offsets.

payloadsboolean

If `true`, the response includes term payloads.

positionsboolean

If `true`, the response includes term positions.

preferencestring

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

realtimeboolean

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

routingoneOf

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

term_statisticsboolean

If true, the response includes term frequency and document frequency.

versionnumber

If `true`, returns the document version as part of a hit.

version_typestring

The version type.

One ofinternalexternalexternal_gte

Response

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

docsarray<object>
_idany
_indexanyrequired
_versionany
tooknumber
foundboolean
term_vectorsobject
errorany
json
{
  "docs": [
    {
      "_index": null,
      "_id": null,
      "_version": null,
      "took": 0,
      "found": false,
      "term_vectors": {},
      "error": null
    }
  ]
}

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

Get multiple term vectors (POST /_mtermvectors) — Elasticsearch — Documentation