[[reference-termvectors]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] [[client.termvectors]] === client.termvectors Get term vector information. Get information and statistics about terms in the fields of a particular document. {ref}/docs-termvectors.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (TermvectorsRequest, options?): Promise ---- [discrete] ==== Request [pass] ++++
++++
interface TermvectorsRequest extends <> {
  index: <>
  id?: <>
  fields?: <>
  field_statistics?: boolean
  offsets?: boolean
  payloads?: boolean
  positions?: boolean
  preference?: string
  realtime?: boolean
  routing?: <>
  term_statistics?: boolean
  version?: <>
  version_type?: <>
  doc?: TDocument
  filter?: <>
  per_field_analyzer?: Record<<>, string>
}

[pass]
++++
++++ [discrete] ==== Response [pass] ++++
++++
interface TermvectorsResponse {
  found: boolean
  _id?: <>
  _index: <>
  term_vectors?: Record<<>, <>>
  took: <>
  _version: <>
}

[pass]
++++
++++