Get the field capabilities
/_field_caps 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.
Required authorization
- Index privileges:
view_index_metadata,read
Parameters
query Query Parameters
| Name | Type |
|---|---|
allow_no_indices If false, the request returns an error if any wildcard expression, index alias,
or | boolean |
expand_wildcards The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as | type TypesExpandWildcards = type TypesExpandWildcard = "all" | "open" | "closed" | "hidden" | "none" | type TypesExpandWildcard = "all" | "open" | "closed" | "hidden" | "none"[] |
fields A comma-separated list of fields to retrieve capabilities for. Wildcard ( | type TypesFields = type TypesField = string | type TypesField = string[] |
ignore_unavailable If | boolean |
include_unmapped If true, unmapped fields are included in the response. | boolean |
filters A comma-separated list of filters to apply to the response. | string[] | string |
types A comma-separated list of field types to include. Any fields that do not match one of these types will be excluded from the results. It defaults to empty, meaning that all field types are returned. | string[] |
include_empty_fields If false, empty fields are not included in the response. | boolean |