# Synonyms file in a cluster

**URL:** <https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279>\
**Category:** Elasticsearch\
**Created:** [March 24, 2013, 12:11pm UTC](https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279 "2013-03-24T12:11:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Greening](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_greening/32/2285_2.png) [@Chris\_Greening](https://discuss.elastic.co/u/Chris_Greening)\
**Post date:** [March 24, 2013, 12:11pm UTC](https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279/1 "2013-03-24T12:11:02Z")

</div>

Hi All,

I just wanted to check my understanding of how synonyms work with indexes  
in a cluster.

Am I right in thinking that each cluster will need the same synonyms file?

Will it matter if when a cluster is being updated the synonyms files are  
out of sync (e.g. if you are updating each machine in turn, a new machine  
will be added to the cluster with a new synonyms file that is not the same  
as the other machines).

Or is the synonyms file stored with the index and not referenced again?

Thanks  
Chris.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)\
**Post date:** [March 24, 2013, 6:45pm UTC](https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279/2 "2013-03-24T18:45:10Z")

</div>

your understanding is correct I'd say!

simon  
On Sunday, March 24, 2013 1:11:02 PM UTC+1, Chris Greening wrote:

> Hi All,
> 
> I just wanted to check my understanding of how synonyms work with indexes  
> in a cluster.
> 
> Am I right in thinking that each cluster will need the same synonyms file?
> 
> Will it matter if when a cluster is being updated the synonyms files are  
> out of sync (e.g. if you are updating each machine in turn, a new machine  
> will be added to the cluster with a new synonyms file that is not the same  
> as the other machines).
> 
> Or is the synonyms file stored with the index and not referenced again?
> 
> Thanks  
> Chris.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Chris\_Greening](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_greening/32/2285_2.png) [@Chris\_Greening](https://discuss.elastic.co/u/Chris_Greening)\
**Post date:** [March 25, 2013, 9:56am UTC](https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279/3 "2013-03-25T09:56:06Z")

</div>

So when I'm updating a node in the cluster and I put a new synonyms file on  
that node. Will it break anything if the other nodes have an older version  
of the synonyms file?

On Sunday, March 24, 2013 6:45:10 PM UTC, simonw wrote:

> your understanding is correct I'd say!
> 
> simon  
> On Sunday, March 24, 2013 1:11:02 PM UTC+1, Chris Greening wrote:
> 
> > Hi All,
> > 
> > I just wanted to check my understanding of how synonyms work with indexes  
> > in a cluster.
> > 
> > Am I right in thinking that each cluster will need the same synonyms file?
> > 
> > Will it matter if when a cluster is being updated the synonyms files are  
> > out of sync (e.g. if you are updating each machine in turn, a new machine  
> > will be added to the cluster with a new synonyms file that is not the same  
> > as the other machines).
> > 
> > Or is the synonyms file stored with the index and not referenced again?
> > 
> > Thanks  
> > Chris.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)\
**Post date:** [March 25, 2013, 10:22am UTC](https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279/4 "2013-03-25T10:22:05Z")

</div>

well you will be indexing / searching with new synonyms which essentially  
breaks your search. if you do update stuff like this you might want to  
consider creating a new index and rather reindex or only apply synonyms at  
search time and then you might see slightly different results while you  
upgrade but that is feasible I guess?

simon

On Monday, March 25, 2013 10:56:06 AM UTC+1, Chris Greening wrote:

> So when I'm updating a node in the cluster and I put a new synonyms file  
> on that node. Will it break anything if the other nodes have an older  
> version of the synonyms file?
> 
> On Sunday, March 24, 2013 6:45:10 PM UTC, simonw wrote:
> 
> > your understanding is correct I'd say!
> > 
> > simon  
> > On Sunday, March 24, 2013 1:11:02 PM UTC+1, Chris Greening wrote:
> > 
> > > Hi All,
> > > 
> > > I just wanted to check my understanding of how synonyms work with  
> > > indexes in a cluster.
> > > 
> > > Am I right in thinking that each cluster will need the same synonyms  
> > > file?
> > > 
> > > Will it matter if when a cluster is being updated the synonyms files are  
> > > out of sync (e.g. if you are updating each machine in turn, a new machine  
> > > will be added to the cluster with a new synonyms file that is not the same  
> > > as the other machines).
> > > 
> > > Or is the synonyms file stored with the index and not referenced again?
> > > 
> > > Thanks  
> > > Chris.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![q42jaap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/q42jaap/32/2241_2.png) [@q42jaap](https://discuss.elastic.co/u/q42jaap)\
**Post date:** [March 25, 2013, 3:40pm UTC](https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279/5 "2013-03-25T15:40:36Z")

</div>

Is there a feature where you can specify synonyms using the rest API?  
Because that might be scoped to index-creation or something.  
Jaap Taal

[Q42 BV | tel 070 44523 42 | direct 070 44523 65 | [http://q42.nl](http://q42.nl) |  
Waldorpstraat 17F, Den Haag | Vijzelstraat 72 unit 4.23, Amsterdam |  
KvK 30164662 ]

On Mon, Mar 25, 2013 at 11:22 AM, simonw  
[simon.willnauer@elasticsearch.com](mailto:simon.willnauer@elasticsearch.com) wrote:

> well you will be indexing / searching with new synonyms which essentially  
> breaks your search. if you do update stuff like this you might want to  
> consider creating a new index and rather reindex or only apply synonyms at  
> search time and then you might see slightly different results while you  
> upgrade but that is feasible I guess?
> 
> simon
> 
> On Monday, March 25, 2013 10:56:06 AM UTC+1, Chris Greening wrote:
> 
> > So when I'm updating a node in the cluster and I put a new synonyms file  
> > on that node. Will it break anything if the other nodes have an older  
> > version of the synonyms file?
> > 
> > On Sunday, March 24, 2013 6:45:10 PM UTC, simonw wrote:
> > 
> > > your understanding is correct I'd say!
> > > 
> > > simon  
> > > On Sunday, March 24, 2013 1:11:02 PM UTC+1, Chris Greening wrote:
> > > 
> > > > Hi All,
> > > > 
> > > > I just wanted to check my understanding of how synonyms work with  
> > > > indexes in a cluster.
> > > > 
> > > > Am I right in thinking that each cluster will need the same synonyms  
> > > > file?
> > > > 
> > > > Will it matter if when a cluster is being updated the synonyms files are  
> > > > out of sync (e.g. if you are updating each machine in turn, a new machine  
> > > > will be added to the cluster with a new synonyms file that is not the same  
> > > > as the other machines).
> > > > 
> > > > Or is the synonyms file stored with the index and not referenced again?
> > > > 
> > > > Thanks  
> > > > Chris.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Chris\_Greening](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_greening/32/2285_2.png) [@Chris\_Greening](https://discuss.elastic.co/u/Chris_Greening)\
**Post date:** [March 25, 2013, 5:56pm UTC](https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279/6 "2013-03-25T17:56:58Z")

</div>

I think it would be quite a rare thing, so creating a new index would make  
sense.

On Monday, March 25, 2013 10:22:05 AM UTC, simonw wrote:

> well you will be indexing / searching with new synonyms which essentially  
> breaks your search. if you do update stuff like this you might want to  
> consider creating a new index and rather reindex or only apply synonyms at  
> search time and then you might see slightly different results while you  
> upgrade but that is feasible I guess?
> 
> simon
> 
> On Monday, March 25, 2013 10:56:06 AM UTC+1, Chris Greening wrote:
> 
> > So when I'm updating a node in the cluster and I put a new synonyms file  
> > on that node. Will it break anything if the other nodes have an older  
> > version of the synonyms file?
> > 
> > On Sunday, March 24, 2013 6:45:10 PM UTC, simonw wrote:
> > 
> > > your understanding is correct I'd say!
> > > 
> > > simon  
> > > On Sunday, March 24, 2013 1:11:02 PM UTC+1, Chris Greening wrote:
> > > 
> > > > Hi All,
> > > > 
> > > > I just wanted to check my understanding of how synonyms work with  
> > > > indexes in a cluster.
> > > > 
> > > > Am I right in thinking that each cluster will need the same synonyms  
> > > > file?
> > > > 
> > > > Will it matter if when a cluster is being updated the synonyms files  
> > > > are out of sync (e.g. if you are updating each machine in turn, a new  
> > > > machine will be added to the cluster with a new synonyms file that is not  
> > > > the same as the other machines).
> > > > 
> > > > Or is the synonyms file stored with the index and not referenced again?
> > > > 
> > > > Thanks  
> > > > Chris.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:44am UTC](https://discuss.elastic.co/t/synonyms-file-in-a-cluster/11279/7 "2017-07-06T02:44:42Z")

</div>


