# Can we have 800 synonym in single synonym.txt file

**URL:** <https://discuss.elastic.co/t/can-we-have-800-synonym-in-single-synonym-txt-file/314150>\
**Category:** Elasticsearch\
**Created:** [September 11, 2022, 7:44pm UTC](https://discuss.elastic.co/t/can-we-have-800-synonym-in-single-synonym-txt-file/314150 "2022-09-11T19:44:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavithra\_arul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavithra_arul/32/108458_2.png) [@pavithra\_arul](https://discuss.elastic.co/u/pavithra_arul)\
**Post date:** [September 11, 2022, 7:44pm UTC](https://discuss.elastic.co/t/can-we-have-800-synonym-in-single-synonym-txt-file/314150/1 "2022-09-11T19:44:53Z")

</div>

Hi Team,  
Need help Urgent !  
I'm trying to add 800 synonym via synonym.txt file in elasticsearch. file got uploaded to server but results are not getting fetched. PFB for the seetings and mapping

```auto
PUT synonym_sample_update
{
    "mappings" : {
      "properties" : {
        "synonym_field" : {
          "type" : "text",
          "analyzer" : "whitespace",
          "search_analyzer" : "synonym_analyzer"
        }
      }
    },
    "settings" : {
        "analysis" : {
          "filter" : {
            "synonym" : {
              "expand" : true,
              "type" : "synonym",
              "synonyms" : [
                "1,One"
              ],
              "updateable": true
            },
            "synonymfile":{
              "expand" : true,
              "type" : "synonym",
              "ignore_case": true,
              "synonyms_path": "analysis/synonym.txt",
              "updateable": true
            }
          },
          "analyzer" : {
            "synonym_analyzer" : {
              "filter" : [
                "lowercase",
                "synonym",
                "synonymfile"
              ],
              "type" : "custom",
              "tokenizer" : "whitespace"
            }
          }
        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 12, 2022, 1:52am UTC](https://discuss.elastic.co/t/can-we-have-800-synonym-in-single-synonym-txt-file/314150/2 "2022-09-12T01:52:34Z")

</div>

Hi @pavithra_arul

> [@pavithra\_arul](#):
>
> file got uploaded to server

Can you explain what you mean by this?

Are you running Elasticsearch Self Managed or in Elastic Cloud?

Also this is community support there is no _"Urgent"_ we are all just volunteers 🙂

---

<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:** [October 10, 2022, 1:52am UTC](https://discuss.elastic.co/t/can-we-have-800-synonym-in-single-synonym-txt-file/314150/3 "2022-10-10T01:52:57Z")

</div>

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