# Reindexing increase the size of the reindexed index

**URL:** <https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055>\
**Category:** Elasticsearch\
**Created:** [December 1, 2019, 10:53am UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055 "2019-12-01T10:53:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [December 1, 2019, 10:53am UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/1 "2019-12-01T10:53:29Z")

</div>

Dear all  
After i reindex some index of mine most of their size increase like double and sometime the indexing doesnot work  
Can someone explain to to why?

Thanks very much

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 2, 2019, 9:35am UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/2 "2019-12-02T09:35:18Z")

</div>

just a wild guess: Did you create index beforehand with the exact same mapping than the source index? Also you can try to run a flush after reindexing.

--Alex

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [December 2, 2019, 9:41am UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/3 "2019-12-02T09:41:09Z")

</div>

well i reindex because i need to have different mapping so i create index with difference mapping

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 2, 2019, 2:58pm UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/4 "2019-12-02T14:58:56Z")

</div>

and could this be the cause of increased disk usage? What changes did you do?

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [December 3, 2019, 1:11am UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/5 "2019-12-03T01:11:59Z")

</div>

i only change the mapping of some field to ip and long

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 3, 2019, 9:58am UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/6 "2019-12-03T09:58:42Z")

</div>

Did you run a flush command? If you want to compare the two indices side by side, there is a dedicated tool [https://github.com/elastic/elasticsearch-disk-usage](https://github.com/elastic/elasticsearch-disk-usage) - however please take the time to read the readme (I suppose this is not on production so everything should be fine, but you might need some more disk space).

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [December 3, 2019, 10:13am UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/7 "2019-12-03T10:13:45Z")

</div>

I havent use the flush command because i already run the reindexing before i write this post  
I will look into that tools, thanks  
and thought i have read the doc on the flush command i still not sure how it will help me figure how reindexing took so much more space

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 4, 2019, 12:44pm UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/8 "2019-12-04T12:44:19Z")

</div>

regarding flushing the index. I remembered an issue in slightly older elasticsearch versions, where a flush was required in order to free some resources.

---

<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:** [January 1, 2020, 12:44pm UTC](https://discuss.elastic.co/t/reindexing-increase-the-size-of-the-reindexed-index/210055/9 "2020-01-01T12:44:19Z")

</div>

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