# Anybody knows how to get just the mappings from index\_template?

**URL:** https://discuss.elastic.co/t/anybody-knows-how-to-get-just-the-mappings-from-index-template/377641
**Category:** Elastic Search
**Created:** [April 29, 2025, 11:06pm UTC](https://discuss.elastic.co/t/anybody-knows-how-to-get-just-the-mappings-from-index-template/377641 "2025-04-29T23:06:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)
#### Post date: [April 29, 2025, 11:06pm UTC](https://discuss.elastic.co/t/anybody-knows-how-to-get-just-the-mappings-from-index-template/377641/1 "2025-04-29T23:06:04Z")

</div>

I am having a hard time with the new online documentations. It's really bad.  
Can anybody please help me with how to retrieving just the mapping from index\_template?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [April 29, 2025, 11:56pm UTC](https://discuss.elastic.co/t/anybody-knows-how-to-get-just-the-mappings-from-index-template/377641/2 "2025-04-29T23:56:07Z")

</div>

> [@linkerc](#):
>
> Can anybody please help me with how to retrieving just the mapping from index\_template?

I don't think this is possible, the `_index_template` [API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-index-template-1) will return the entire template, you cannot filter to get just the mappings, also, you can have templates without any mappings.

If you have `jq` you could manipulate the response to print out just the `mappings`.

> [@linkerc](#):
>
> I am having a hard time with the new online documentations. It's really bad.

Yeah, I also had some issues with the new documentation, there is this [topic](https://discuss.elastic.co/t/new-documentation-issues/377445) with some discussion and people from elastic getting feedback.
