[[reference-field_caps]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || 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.fieldCaps Get the field capabilities. Get information about the capabilities of fields among multiple indices. For data streams, the API returns field capabilities among the stream’s backing indices. It returns runtime fields like any other field. For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the `keyword` family. {ref}/search-field-caps.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (FieldCapsRequest, options?): Promise ---- [discrete] ==== FieldCapsRequest [pass] ++++
++++
interface FieldCapsRequest extends <> {
  index?: <>
  allow_no_indices?: boolean
  expand_wildcards?: <>
  ignore_unavailable?: boolean
  include_unmapped?: boolean
  filters?: string
  types?: string[]
  include_empty_fields?: boolean
  fields?: <>
  index_filter?: QueryDslQueryContainer
  runtime_mappings?: MappingRuntimeFields
}

[pass]
++++
++++ [discrete] ==== FieldCapsResponse [pass] ++++
++++
interface FieldCapsResponse {
  indices: <>
  fields: Record<<>, Record>
}

[pass]
++++
++++