# Does synonyms.txt file in synonym token filter reside in cluster state?

**URL:** <https://discuss.elastic.co/t/does-synonyms-txt-file-in-synonym-token-filter-reside-in-cluster-state/114449>\
**Category:** Elasticsearch\
**Created:** [January 8, 2018, 5:53am UTC](https://discuss.elastic.co/t/does-synonyms-txt-file-in-synonym-token-filter-reside-in-cluster-state/114449 "2018-01-08T05:53:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhilash\_Bolla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhilash_bolla/32/26840_2.png) [@Abhilash\_Bolla](https://discuss.elastic.co/u/Abhilash_Bolla)\
**Post date:** [January 8, 2018, 5:53am UTC](https://discuss.elastic.co/t/does-synonyms-txt-file-in-synonym-token-filter-reside-in-cluster-state/114449/1 "2018-01-08T05:53:28Z")

</div>

Hi, I have a synonym file which is about 300MB. When I define a synonym token filter which uses this file. Will the 300MB reside in the cluster state and get updated on all nodes at regular intervals?

When I create an index with synonym token filter involved in the settings, its takes almost 15mins for the shards to allocated and turn green. Please assist.

---

<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 8, 2018, 6:46am UTC](https://discuss.elastic.co/t/does-synonyms-txt-file-in-synonym-token-filter-reside-in-cluster-state/114449/2 "2018-01-08T06:46:24Z")

</div>

Yes they are stored in cluster state. Given that's a pretty large file, it's not surprising it's taking that long.

---

<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:** [February 5, 2018, 6:46am UTC](https://discuss.elastic.co/t/does-synonyms-txt-file-in-synonym-token-filter-reside-in-cluster-state/114449/3 "2018-02-05T06:46:49Z")

</div>

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