@elastic/get-mapping
Get field mappings for an index
RUN SKILL get_mapping()With parameters:
RUN SKILL get_mapping WITH index_name = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| index_name | STRING | — | Index name |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL get_mapping()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}