mtermvectors

edit
client.mtermvectors({
  index: string,
  type: string,
  ids: string | string[],
  term_statistics: boolean,
  field_statistics: boolean,
  fields: string | string[],
  offsets: boolean,
  positions: boolean,
  payloads: boolean,
  preference: string,
  routing: string,
  parent: string,
  realtime: boolean,
  version: number,
  version_type: 'internal' | 'external' | 'external_gte' | 'force',
  body: object
})

Reference

index

string - The index in which the document resides.

type

string - The type of the document.

ids

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

term_statistics or termStatistics

boolean - Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".

field_statistics or fieldStatistics

boolean - Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
Default: true

fields

string | string[] - A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs".

offsets

boolean - Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
Default: true

positions

boolean - Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
Default: true

payloads

boolean - Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
Default: true

preference

string - Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs".

routing

string - Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs".

parent

string - Parent id of documents. Applies to all returned documents unless otherwise specified in body "params" or "docs".

realtime

boolean - Specifies if requests are real-time as opposed to near-real-time (default: true).

version

number - Explicit version number for concurrency control

version_type or versionType

'internal' | 'external' | 'external_gte' | 'force' - Specific version type

body

object - Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation.