# Does ElasticSearch add field names sizes to the object size?

**URL:** <https://discuss.elastic.co/t/does-elasticsearch-add-field-names-sizes-to-the-object-size/73420>\
**Category:** Elasticsearch\
**Created:** [January 31, 2017, 8:35pm UTC](https://discuss.elastic.co/t/does-elasticsearch-add-field-names-sizes-to-the-object-size/73420 "2017-01-31T20:35:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kievbs](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kievbs](https://discuss.elastic.co/u/kievbs)\
**Post date:** [January 31, 2017, 8:35pm UTC](https://discuss.elastic.co/t/does-elasticsearch-add-field-names-sizes-to-the-object-size/73420/1 "2017-01-31T20:35:42Z")

</div>

I am looking to reduce the size of the ES object due to scaling requirements. After tests I have noticed that if I am using shorter field names, the object size becomes much smaller.  
Does this mean that ES is storing field names as the part of the object??  
I am using ES 2.4.1.

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [January 31, 2017, 8:50pm UTC](https://discuss.elastic.co/t/does-elasticsearch-add-field-names-sizes-to-the-object-size/73420/2 "2017-01-31T20:50:27Z")

</div>

It is _really_ complicated but the short answer is "sometimes".

Your document is stored exactly as is in the `_source` field which is stored in chunks and compressed. So that stores the field names, though probably only one copy per chunk.

In the index itself I expect the field names to be listed, but certainly not once per document on average.

I guess it all depends on how small the index is.

---

<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:** [February 28, 2017, 8:50pm UTC](https://discuss.elastic.co/t/does-elasticsearch-add-field-names-sizes-to-the-object-size/73420/3 "2017-02-28T20:50:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
