younifyd
Menu

Get term vector information (POST /{index}/_termvectors)

Get term vector information

POST/{index}/_termvectors

Use it in a workflow

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

Request

Path parameters

indexstringrequired

The name of the index that contains the document.

Query parameters

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 (how many documents contain this field). * The sum of document frequencies (the sum of document frequencies for all terms in this field). * The sum of total term frequencies (the sum of total term frequencies of each term in this field).

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 that is used to route operations to a specific shard.

term_statisticsboolean

If `true`, the response includes: * The total term frequency (how often a term occurs in all documents). * The document frequency (the number of documents containing the current term). By default these values are not returned since term statistics can have a serious performance impact.

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

foundboolean
_idany
_indexany
term_vectorsobject
tooknumber
_versionany
json
{
  "found": false,
  "_index": null,
  "took": 0,
  "_version": null,
  "_id": null,
  "term_vectors": {}
}

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