get_mapping
Retrieve an index mapping as a flattened field catalog with field paths and types, multi-fields, dynamic templates, and total field count—everything needed to write correct queries.
Instructions
Get the mapping for an index. Returns a flattened field catalog (field path -> type, including multi-fields like .keyword) which is what you need to write correct queries, plus dynamic templates and total field count. Set raw=true for the untouched mapping JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| index | Yes | ||
| field_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |