# Synonyms file location

**URL:** <https://discuss.elastic.co/t/synonyms-file-location/44379>\
**Category:** Elasticsearch\
**Created:** [March 15, 2016, 12:23am UTC](https://discuss.elastic.co/t/synonyms-file-location/44379 "2016-03-15T00:23:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijat](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@abhijat](https://discuss.elastic.co/u/abhijat)\
**Post date:** [March 15, 2016, 12:23am UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/1 "2016-03-15T00:23:10Z")

</div>

We have client, master and data nodes in our cluster.

- Why does synonyms file need to be in each (client, master or data) node of the cluster?

- Why should the client node care for synonyms file?

---

<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:** [March 15, 2016, 2:35am UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/2 "2016-03-15T02:35:00Z")

</div>

Given a document is sent to a (data) node that has the relevant shard, I'd expect that it only needs to be the data nodes. But don't quote me as that's just an educated guess!

---

<div class="post-metadata">

**Author:** ![abhijat](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@abhijat](https://discuss.elastic.co/u/abhijat)\
**Post date:** [March 16, 2016, 9:40pm UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/3 "2016-03-16T21:40:37Z")

</div>

That is exactly what I think it should be. Perhaps it was not thought through...

Is it OK to create a ticket in Github against ES?

---

<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:** [March 16, 2016, 9:43pm UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/4 "2016-03-16T21:43:46Z")

</div>

Let me see if I can get a definitive response from one of the core team.

---

<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:** [March 17, 2016, 1:09am UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/5 "2016-03-17T01:09:17Z")

</div>

It needs to be on both data and master nodes.

---

<div class="post-metadata">

**Author:** ![abhijat](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@abhijat](https://discuss.elastic.co/u/abhijat)\
**Post date:** [March 17, 2016, 6:38pm UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/6 "2016-03-17T18:38:35Z")

</div>

ok.. thank you. I will try it by not putting it in client nodes

---

<div class="post-metadata">

**Author:** ![abhijat](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@abhijat](https://discuss.elastic.co/u/abhijat)\
**Post date:** [March 18, 2016, 5:28am UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/7 "2016-03-18T05:28:20Z")

</div>

Verified this today on elastic 2.x. synonyms file needs to be in master and data nodes only. I suppose the same behavior exists on elastic 1.x as well.

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [March 18, 2016, 11:19pm UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/8 "2016-03-18T23:19:55Z")

</div>

Considering that the synonyms file is part of the mapping, it should be  
placed on the master nodes as well, since the master nodes coordinate  
mapping changes.

---

<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:06pm UTC](https://discuss.elastic.co/t/synonyms-file-location/44379/9 "2017-07-05T23:06:57Z")

</div>


