Can we have 800 synonym in single synonym.txt file

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

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"
            }
          }
        }
    }
}

Hi @pavithra_arul

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 :slight_smile:

1 Like

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