# Closing Index in Production

**URL:** <https://discuss.elastic.co/t/closing-index-in-production/105837>\
**Category:** Elasticsearch\
**Created:** [October 31, 2017, 6:24am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837 "2017-10-31T06:24:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_kumar1/32/47867_2.png) [@Vikas\_Kumar1](https://discuss.elastic.co/u/Vikas_Kumar1)\
**Post date:** [October 31, 2017, 6:24am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/1 "2017-10-31T06:24:55Z")

</div>

I want to update a filter and I can't do that without closing index. We are using elastic 2.4 and have 6 node cluster with minimum discoery node 4.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 31, 2017, 6:40am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/2 "2017-10-31T06:40:51Z")

</div>

And what is your question?

---

<div class="post-metadata">

**Author:** ![Vikas\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_kumar1/32/47867_2.png) [@Vikas\_Kumar1](https://discuss.elastic.co/u/Vikas_Kumar1)\
**Post date:** [October 31, 2017, 6:48am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/3 "2017-10-31T06:48:11Z")

</div>

There is a filter in settings of the index say custom\_synonym which is a synonym filter . I want to change the path for synonym file . How can I change it dynamically with zero downtime and without closing index

---

<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:** [October 31, 2017, 7:15am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/4 "2017-10-31T07:15:39Z")

</div>

You cannot, you need to close the index.

---

<div class="post-metadata">

**Author:** ![Vikas\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_kumar1/32/47867_2.png) [@Vikas\_Kumar1](https://discuss.elastic.co/u/Vikas_Kumar1)\
**Post date:** [October 31, 2017, 10:46am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/5 "2017-10-31T10:46:33Z")

</div>

Can you please guide how to do this without zero downtime , I mean any workaround ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 31, 2017, 11:44am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/6 "2017-10-31T11:44:47Z")

</div>

If you had an alias you were querying through, you could keep two versions of the index. This would allow you to modify close the one the alias is not currently pointing to and you can then change the alias when the change is complete. This would allow you to change without downtime but would take up more space on disk.

---

<div class="post-metadata">

**Author:** ![Vikas\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_kumar1/32/47867_2.png) [@Vikas\_Kumar1](https://discuss.elastic.co/u/Vikas_Kumar1)\
**Post date:** [October 31, 2017, 11:57am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/7 "2017-10-31T11:57:23Z")

</div>

That's the problem ! Disk space . We have index size of 1.6TB.  
Thanks for your response

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 31, 2017, 12:04pm UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/8 "2017-10-31T12:04:33Z")

</div>

That is the only way I can see to do it without any downtime.

---

<div class="post-metadata">

**Author:** ![Vikas\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_kumar1/32/47867_2.png) [@Vikas\_Kumar1](https://discuss.elastic.co/u/Vikas_Kumar1)\
**Post date:** [November 1, 2017, 7:14am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/9 "2017-11-01T07:14:53Z")

</div>

We can't bear this.Anyway Thank you @Christian_Dahlqvist

---

<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:** [November 29, 2017, 7:14am UTC](https://discuss.elastic.co/t/closing-index-in-production/105837/10 "2017-11-29T07:14:57Z")

</div>

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