# How to set the synonym by using dynamic settings?

**URL:** <https://discuss.elastic.co/t/how-to-set-the-synonym-by-using-dynamic-settings/39502>\
**Category:** Elasticsearch\
**Created:** [January 19, 2016, 6:39am UTC](https://discuss.elastic.co/t/how-to-set-the-synonym-by-using-dynamic-settings/39502 "2016-01-19T06:39:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)\
**Post date:** [January 19, 2016, 6:39am UTC](https://discuss.elastic.co/t/how-to-set-the-synonym-by-using-dynamic-settings/39502/1 "2016-01-19T06:39:03Z")

</div>

my synonym configure is in one file, and the file path is configured in the elasticsearch.yml,  
i now want to change the settings in the synonym file. how to do it?

can anyone give me an example?

[https://www.elastic.co/guide/en/elasticsearch/guide/current/\_changing\_settings\_dynamically.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/_changing_settings_dynamically.html)

i cant find any way from the url above.

---

<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:** [January 19, 2016, 6:46am UTC](https://discuss.elastic.co/t/how-to-set-the-synonym-by-using-dynamic-settings/39502/2 "2016-01-19T06:46:15Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/2.1/analysis-synonym-tokenfilter.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.1/analysis-synonym-tokenfilter.html)

You need to update the mapping/template. However it won't apply to documents already indexed.

---

<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:23pm UTC](https://discuss.elastic.co/t/how-to-set-the-synonym-by-using-dynamic-settings/39502/3 "2017-07-05T23:23:34Z")

</div>


