# Preprocessing synonym files with analyzers before applying

**URL:** <https://discuss.elastic.co/t/preprocessing-synonym-files-with-analyzers-before-applying/34177>\
**Category:** Elasticsearch\
**Created:** [November 9, 2015, 5:20pm UTC](https://discuss.elastic.co/t/preprocessing-synonym-files-with-analyzers-before-applying/34177 "2015-11-09T17:20:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navneet\_Kapur](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@Navneet\_Kapur](https://discuss.elastic.co/u/Navneet_Kapur)\
**Post date:** [November 9, 2015, 5:20pm UTC](https://discuss.elastic.co/t/preprocessing-synonym-files-with-analyzers-before-applying/34177/1 "2015-11-09T17:20:51Z")

</div>

Hi.  
I've been trying to set up my synonym analyzer. It works with synonym phrases.  
Eg. shortness of breath, difficulty breathing =\> breathlessness

However, this will not cover phrases like "difficult to breathe". Also, there are other phrases where we have plurals and other cases which make the synonym file pretty big.

I like the ignore\_case option with the synonym filters. I wonder if there is another option (already implemented or in the works) which allows me to canonicalize the synonyms not just on case but on word-root as well (stemming).

Thanks!  
Navneet.

---

<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:39pm UTC](https://discuss.elastic.co/t/preprocessing-synonym-files-with-analyzers-before-applying/34177/2 "2017-07-05T23:39:44Z")

</div>

Closed on July 5, 2017, 11:39pm UTC


