# Multiple Synonym lists for the same field controlled by other field in Elastic Search

**URL:** <https://discuss.elastic.co/t/multiple-synonym-lists-for-the-same-field-controlled-by-other-field-in-elastic-search/286784>\
**Category:** Elasticsearch\
**Created:** [October 14, 2021, 11:48pm UTC](https://discuss.elastic.co/t/multiple-synonym-lists-for-the-same-field-controlled-by-other-field-in-elastic-search/286784 "2021-10-14T23:48:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![twisha](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@twisha](https://discuss.elastic.co/u/twisha)\
**Post date:** [October 14, 2021, 11:48pm UTC](https://discuss.elastic.co/t/multiple-synonym-lists-for-the-same-field-controlled-by-other-field-in-elastic-search/286784/1 "2021-10-14T23:48:58Z")

</div>

Is there a way to define multiple synonym lists in Elasticsearch 7 based on languages and some specific field in the Elasticsearch document? The use case is, I have a field "A" with possible values "Y" and "Z". Now, depending on the value of field "A" and the "language" of document, I want to assign it a specific synonym list. Is there a way to achieve this through "es\_mappings"?

```auto
Synonym Data: 
"Y" > "en"
    > "es"
    > "fr"
    > "it"
    > ..
    > ..
"Z" > "en"
    > "es"
    > "fr"
    > "it"
    > ..
    > ..

```

---

<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:** [November 11, 2021, 11:49pm UTC](https://discuss.elastic.co/t/multiple-synonym-lists-for-the-same-field-controlled-by-other-field-in-elastic-search/286784/2 "2021-11-11T23:49:21Z")

</div>

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