# Deployment strategy for synonyms / stopwords file

**URL:** <https://discuss.elastic.co/t/deployment-strategy-for-synonyms-stopwords-file/127402>\
**Category:** Elasticsearch\
**Created:** [April 10, 2018, 1:12am UTC](https://discuss.elastic.co/t/deployment-strategy-for-synonyms-stopwords-file/127402 "2018-04-10T01:12:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brett\_Anderson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brett_anderson/32/2555_2.png) [@Brett\_Anderson](https://discuss.elastic.co/u/Brett_Anderson)\
**Post date:** [April 10, 2018, 1:12am UTC](https://discuss.elastic.co/t/deployment-strategy-for-synonyms-stopwords-file/127402/1 "2018-04-10T01:12:42Z")

</div>

If you're using a synonym and / or stopwords file as part of your search analyzer definition my understanding is that you can update the analyzer by updating the synonym or stopwords file on every member of the cluster. Is there an API method to update the file on each cluster member, or is this a manual process? If it is manual, is there any recommended scripts to makes this task simpler?

Also, once the file is deployed I believe you just need to re-load the analyzers (since this is just a search analyzer, no re-index required). The recommended approach is to close and re-open the index, or restart each node one at a time. If you restart each node in this way, won't some have different synonym / stopwords files during the process? Does this cause any problems, or just mean you might get inconsistent results until all the nodes have restarted?

---

<div class="post-metadata">

**Author:** ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)\
**Post date:** [April 15, 2018, 10:10pm UTC](https://discuss.elastic.co/t/deployment-strategy-for-synonyms-stopwords-file/127402/2 "2018-04-15T22:10:44Z")

</div>

Currently there is no API to update a synonym file. This is a manual process, done on each individual node. So, it is possible that your synonym files may be inconsistent on different nodes. We currently don't check if synonym files are consistent across the nodes, so there shouldn't be problem from this side (apart from inconsistent search results). Closing and re-opening an index should be enough to load into the memory an updated synonym file.

---

<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:** [May 13, 2018, 10:25pm UTC](https://discuss.elastic.co/t/deployment-strategy-for-synonyms-stopwords-file/127402/3 "2018-05-13T22:25:39Z")

</div>

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