# How to query current mapping size?

**URL:** https://discuss.elastic.co/t/how-to-query-current-mapping-size/57703
**Category:** Elasticsearch
**Created:** [August 10, 2016, 12:00pm UTC](https://discuss.elastic.co/t/how-to-query-current-mapping-size/57703 "2016-08-10T12:00:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tpraizler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tpraizler/32/46271_2.png) [@tpraizler](https://discuss.elastic.co/u/tpraizler)
#### Post date: [August 10, 2016, 12:00pm UTC](https://discuss.elastic.co/t/how-to-query-current-mapping-size/57703/1 "2016-08-10T12:00:23Z")

</div>

Hey,

I run Elasticsearch 2.3.5.  
Is there a way to get statistics on index mappings? size? memory?  
Currently I have a mess in my mappings, and I am doing some cleanups.  
I would like to see the impact of my changes.

Is there such way?

Thanks!

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 10, 2016, 9:47pm UTC](https://discuss.elastic.co/t/how-to-query-current-mapping-size/57703/2 "2016-08-10T21:47:44Z")

</div>

There's not, but it's an interesting idea.  
I'd encourage you to raise a feature request on GH 🙂

---

<div class="post-metadata">

### Author: ![abeyad](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@abeyad](https://discuss.elastic.co/u/abeyad)
#### Post date: [August 10, 2016, 9:54pm UTC](https://discuss.elastic.co/t/how-to-query-current-mapping-size/57703/3 "2016-08-10T21:54:39Z")

</div>

Size wise, you could compare the size of the index metadata your data directory before and after the change ($ES\_HOME/data/nodes/{nodeId}/indices/{indexID}/\_state) to see any differences. In terms of memory usage savings within ES for your mapping changes, that will be much harder to ascertain and there is no concrete way of getting that information as Mark mentioned.

---

<div class="post-metadata">

### Author: ![tpraizler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tpraizler/32/46271_2.png) [@tpraizler](https://discuss.elastic.co/u/tpraizler)
#### Post date: [August 11, 2016, 12:27pm UTC](https://discuss.elastic.co/t/how-to-query-current-mapping-size/57703/4 "2016-08-11T12:27:46Z")

</div>

Thanks!

@warkolm I will do that!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 10:28pm UTC](https://discuss.elastic.co/t/how-to-query-current-mapping-size/57703/5 "2017-07-05T22:28:24Z")

</div>


