# SynonymTokenFilterFactory uses which Synonym Map?

**URL:** <https://discuss.elastic.co/t/synonymtokenfilterfactory-uses-which-synonym-map/120465>\
**Category:** Elasticsearch\
**Created:** [February 19, 2018, 1:45pm UTC](https://discuss.elastic.co/t/synonymtokenfilterfactory-uses-which-synonym-map/120465 "2018-02-19T13:45:46Z")\
**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:** [February 19, 2018, 1:45pm UTC](https://discuss.elastic.co/t/synonymtokenfilterfactory-uses-which-synonym-map/120465/1 "2018-02-19T13:45:46Z")

</div>

Hi all,

I would want to know if SynonymTokenFilterFactory in SynonymTokenFilterFactory.java uses which kind of SynonymMap. Is it FST based or is it a normal Map builder. Asking this question after having a look at [https://issues.apache.org/jira/browse/LUCENE-3233](https://issues.apache.org/jira/browse/LUCENE-3233)

I am facing issues with large synonyms files (almost 300MB) and the same analyzer is being used in multiple indices in the same cluster. As the cluster state becomes too big because of the synonym files. Its leading to memory pressure and GCs going full.

Please assist.

---

<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:** [February 20, 2018, 11:46am UTC](https://discuss.elastic.co/t/synonymtokenfilterfactory-uses-which-synonym-map/120465/2 "2018-02-20T11:46:18Z")

</div>

@DavidTurner and @Tim_Brooks Any answers?

---

<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:** [March 20, 2018, 11:46am UTC](https://discuss.elastic.co/t/synonymtokenfilterfactory-uses-which-synonym-map/120465/3 "2018-03-20T11:46:47Z")

</div>

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