# Elasticsearch indexing storage mechanism

**URL:** <https://discuss.elastic.co/t/elasticsearch-indexing-storage-mechanism/33483>\
**Category:** Elasticsearch\
**Created:** [November 2, 2015, 7:36am UTC](https://discuss.elastic.co/t/elasticsearch-indexing-storage-mechanism/33483 "2015-11-02T07:36:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgnrk23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pgnrk23/32/5636_2.png) [@pgnrk23](https://discuss.elastic.co/u/pgnrk23)\
**Post date:** [November 2, 2015, 7:36am UTC](https://discuss.elastic.co/t/elasticsearch-indexing-storage-mechanism/33483/1 "2015-11-02T07:36:57Z")

</div>

Hello Buddies,

I have a doubt in the elasticsearch indexing storage mechanism that is,  
For example, When we are indexing the data, it occupies some space in disk storage for storing the DOC, when we apply any analyzer the space occupied varies and also it is growing in multiple times of the original data in the database.

Can anyone explain the ratio or concept behind it?

Thanks in advance.

---

<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:** [November 2, 2015, 7:48am UTC](https://discuss.elastic.co/t/elasticsearch-indexing-storage-mechanism/33483/2 "2015-11-02T07:48:19Z")

</div>

We do store the original document in `_source`, and then all the fields as per the analyser. So it really depends on what sort of analysis you are using.

Note that we do compress things, so that should help.

---

<div class="post-metadata">

**Author:** ![pgnrk23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pgnrk23/32/5636_2.png) [@pgnrk23](https://discuss.elastic.co/u/pgnrk23)\
**Post date:** [November 2, 2015, 8:03am UTC](https://discuss.elastic.co/t/elasticsearch-indexing-storage-mechanism/33483/3 "2015-11-02T08:03:09Z")

</div>

Thanks, Mark Walkom. (@warkolm)  
I am using the following analyzer,

1. Shingle
2. Snowball
3. nGram
4. Raw.

Do you have any idea about the ratio of the original and index storage?  
And also do I need to change any settings to apply the compressing that you have mentioned.

---

<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, 11:41pm UTC](https://discuss.elastic.co/t/elasticsearch-indexing-storage-mechanism/33483/4 "2017-07-05T23:41:20Z")

</div>


