# Update on synonyms file requires full index recreation?

**URL:** <https://discuss.elastic.co/t/update-on-synonyms-file-requires-full-index-recreation/17551>\
**Category:** Elasticsearch\
**Created:** [May 16, 2014, 11:42am UTC](https://discuss.elastic.co/t/update-on-synonyms-file-requires-full-index-recreation/17551 "2014-05-16T11:42:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tom_4/32/1045_2.png) [@Tom\_4](https://discuss.elastic.co/u/Tom_4)\
**Post date:** [May 16, 2014, 11:42am UTC](https://discuss.elastic.co/t/update-on-synonyms-file-requires-full-index-recreation/17551/1 "2014-05-16T11:42:19Z")

</div>

Hi,

ES 1.1.1  
when i use the synonyms filter with a synonyms\_path file i have to create  
whole index again to take new synonyms in effect.  
It is not enough to update the index data, in need to remove, create and  
update whole index.

Is that expected behaviour? If so what is ur strategy to get this done on a  
productive system?

Thx & regards  
Tom

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0d8448bb-92e2-4748-a624-29fd95ea4ba1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0d8448bb-92e2-4748-a624-29fd95ea4ba1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Tom\_4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tom_4/32/1045_2.png) [@Tom\_4](https://discuss.elastic.co/u/Tom_4)\
**Post date:** [May 16, 2014, 10:19pm UTC](https://discuss.elastic.co/t/update-on-synonyms-file-requires-full-index-recreation/17551/2 "2014-05-16T22:19:40Z")

</div>

Read about file wathcer service  
here [Analysis Synonym: Shared on node level + auto reload from file system · Issue #4063 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/4063)

Anything happening according this or am i monitoring the wrong path?

Am Freitag, 16. Mai 2014 13:42:19 UTC+2 schrieb Tom:

> Hi,
> 
> ES 1.1.1  
> when i use the synonyms filter with a synonyms\_path file i have to create  
> whole index again to take new synonyms in effect.  
> It is not enough to update the index data, in need to remove, create and  
> update whole index.
> 
> Is that expected behaviour? If so what is ur strategy to get this done on  
> a productive system?
> 
> Thx & regards  
> Tom

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c9eb7ca7-328b-4829-b636-3a69f714f226%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c9eb7ca7-328b-4829-b636-3a69f714f226%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [May 16, 2014, 11:01pm UTC](https://discuss.elastic.co/t/update-on-synonyms-file-requires-full-index-recreation/17551/3 "2014-05-16T23:01:08Z")

</div>

The synonym file will be read whenever a new index is created or if an  
index is re-opened. Closing and opening an index is not the cleanest  
solution, so I created a plugin to help solve the problem:  
[https://github.com/brusic/refresh-token-filters](https://github.com/brusic/refresh-token-filters)

However, this version of the plugin does not seem to be working 100%.  
Unfortunately, I do not have time to test. I have a different version of  
the plugin working at my company for over a year without any issues. It has  
more bells and whistles (connects to a database for the term lists, timed  
refreshes), but I wanted my public version to be simpler. The most  
important change is that I moved from tracking the filter Java objects  
directly to using the IndicesService. However, I found that some analyzers  
can be cached and therefore there internal filters do not change. Like I  
said, I don't have time to test, but I am assuming that is the issue.

Cheers,

Ivan

On Fri, May 16, 2014 at 3:19 PM, Tom [t.oppelt@superreal.de](mailto:t.oppelt@superreal.de) wrote:

> Read about file wathcer service here  
> [Analysis Synonym: Shared on node level + auto reload from file system · Issue #4063 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/4063)
> 
> Anything happening according this or am i monitoring the wrong path?
> 
> Am Freitag, 16. Mai 2014 13:42:19 UTC+2 schrieb Tom:
> 
> > Hi,
> > 
> > ES 1.1.1  
> > when i use the synonyms filter with a synonyms\_path file i have to create  
> > whole index again to take new synonyms in effect.  
> > It is not enough to update the index data, in need to remove, create and  
> > update whole index.
> > 
> > Is that expected behaviour? If so what is ur strategy to get this done on  
> > a productive system?
> > 
> > Thx & regards  
> > Tom
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c9eb7ca7-328b-4829-b636-3a69f714f226%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c9eb7ca7-328b-4829-b636-3a69f714f226%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/c9eb7ca7-328b-4829-b636-3a69f714f226%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c9eb7ca7-328b-4829-b636-3a69f714f226%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDub2OH1CKS1phM286gC7808vqGVXyJDtf7D%3DfoyBb5%2BA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDub2OH1CKS1phM286gC7808vqGVXyJDtf7D%3DfoyBb5%2BA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:28am UTC](https://discuss.elastic.co/t/update-on-synonyms-file-requires-full-index-recreation/17551/4 "2017-07-06T01:28:46Z")

</div>


