# Synonym filter and preserve originals

**URL:** <https://discuss.elastic.co/t/synonym-filter-and-preserve-originals/279989>\
**Category:** Elasticsearch\
**Created:** [July 29, 2021, 1:32pm UTC](https://discuss.elastic.co/t/synonym-filter-and-preserve-originals/279989 "2021-07-29T13:32:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeSouthpaw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joesouthpaw/32/92312_2.png) [@JoeSouthpaw](https://discuss.elastic.co/u/JoeSouthpaw)\
**Post date:** [July 29, 2021, 1:32pm UTC](https://discuss.elastic.co/t/synonym-filter-and-preserve-originals/279989/1 "2021-07-29T13:32:42Z")

</div>

Hi there!

I'm using elasticsearch for full-text front end search and have set up a custom search analyser with a large solr-format synonym filter attached. Unfortunately, some of these synonyms address business cases while others actually hinder search results. This file is massive and cannot be easily fixed, however: keeping the original tokens in addition to synonym results would solve most of our problems.

However, it seems that regarding the synonym filter my options are severely limited.  
I have tried:

1. multiplexer filter - does not work for most cases as we have plenty of multi-term synonym entries
2. keyword repeat - incompatible with search
3. synonym graph shows the same behaviour (expected, but I guess I had to try)

Is there any way to do this? The only viable option we seem to have left is to use copy\_to to copy to separate field without synonyms and a different search analyser. This is seems rather cumbersome and and not great performance wise.

Please let me know if there's an easier way to achieve this - maybe I've missed a config value somewhere?

Thanks 🙂

---

<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:** [August 26, 2021, 1:32pm UTC](https://discuss.elastic.co/t/synonym-filter-and-preserve-originals/279989/2 "2021-08-26T13:32:59Z")

</div>

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