﻿---
title: stack es mtermvectors cli command
description: Get multiple term vectors. Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4075/reference/elastic-cli/cli/stack/es/mtermvectors
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack es mtermvectors cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es mtermvectors [options]
```

Get multiple term vectors.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--ids string[]">
    A simplified syntax to specify documents by their ID if they're in the same index.
    **Repeatable:** pass `--ids` multiple times to supply more than one value
  </definition>
  <definition term="--fields string">
    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.
    **Repeatable:** pass `--fields` multiple times to supply more than one value
  </definition>
  <definition term="--field-statistics">
    If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies.
  </definition>
  <definition term="--offsets">
    If `true`, the response includes term offsets.
  </definition>
  <definition term="--payloads">
    If `true`, the response includes term payloads.
  </definition>
  <definition term="--positions">
    If `true`, the response includes term positions.
  </definition>
  <definition term="--preference string">
    The node or shard the operation should be performed on.
    It is random by default.
  </definition>
  <definition term="--realtime">
    If true, the request is real-time as opposed to near-real-time.
  </definition>
  <definition term="--routing string">
    A custom value used to route operations to a specific shard.
    Not allowed when `index.slice.enabled` is `true` for the target index; use `_slice` instead.
    **Repeatable:** pass `--routing` multiple times to supply more than one value
  </definition>
  <definition term="--term-statistics">
    If true, the response includes term frequency and document frequency.
  </definition>
  <definition term="--version number">
    If `true`, returns the document version as part of a hit.
  </definition>
  <definition term="--version-type enum">
    The version type.
    **Values:** internal, external, external_gte
  </definition>
  <definition term="--docs string[]">
    An array of existing or artificial documents.
    **Repeatable:** pass `--docs` multiple times to supply more than one value
  </definition>
  <definition term="--index string">
    The name of the index that contains the documents.
  </definition>
  <definition term="--error-trace">
    When set to `true` Elasticsearch will include the full stack trace of errors
    when they occur.
  </definition>
  <definition term="--filter-path string">
    Comma-separated list of filters in dot notation which reduce the response
    returned by Elasticsearch.
    **Repeatable:** pass `--filter-path` multiple times to supply more than one value
  </definition>
  <definition term="--human">
    When set to `true` will return statistics in a format suitable for humans.
    For example `"exists_time": "1h"` for humans and
    `"exists_time_in_millis": 3600000` for computers. When disabled the human
    readable values will be omitted. This makes sense for responses being consumed
    only by machines.
  </definition>
  <definition term="--pretty">
    If set to `true` the returned JSON will be "pretty-formatted". Only use
    this option for debugging only.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>