Get mapping definitions

  • GET /{index}/_mapping/field/{fields}
  • GET /_mapping/field/{fields}

Retrieves mapping definitions for one or more fields. For data streams, the API retrieves field mappings for the stream’s backing indices.

This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields.

  • Index privileges: view_index_metadata

Response