# Reindexing shrunk index removes index's shrink settings

**URL:** <https://discuss.elastic.co/t/reindexing-shrunk-index-removes-indexs-shrink-settings/124931>\
**Category:** Elasticsearch\
**Created:** [March 21, 2018, 8:24am UTC](https://discuss.elastic.co/t/reindexing-shrunk-index-removes-indexs-shrink-settings/124931 "2018-03-21T08:24:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BBQigniter](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@BBQigniter](https://discuss.elastic.co/u/BBQigniter)\
**Post date:** [March 21, 2018, 8:24am UTC](https://discuss.elastic.co/t/reindexing-shrunk-index-removes-indexs-shrink-settings/124931/1 "2018-03-21T08:24:55Z")

</div>

Hello,

I'm playing around with the Elasticsearch Python API and now have my own reindex-, a shrink-script and other scripts. I now have a minor problem, that if I reindex a shrunk index, the shrink-settings disappear and so if I run the shrink-script again it will shrink the index to the minimum (ergo 1 shard or skip if it already has only 1 shard).  
Trying to set the shrink-setting via the API's put\_settings or via curl on an index does not work, it just throws an exception with: 'unknown setting [index.source.name] please check that any required plugins ...'

Is there any option to set such 'shrink'-settings manually that I missed? How is the shrink-method setting this if it's not known?

Btw, it would be awesome if you could set comments and/or tags in index-templates and -settings :o)

---

<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:** [April 18, 2018, 8:25am UTC](https://discuss.elastic.co/t/reindexing-shrunk-index-removes-indexs-shrink-settings/124931/2 "2018-04-18T08:25:08Z")

</div>

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