Elasticsearch - refresh config

I'm using elastic cloud and I need to configure synonyms. I've done that successfully by uploading a zip file containing a elasticsearch/dictionaries/synonyms.txt file and creating an index that uses them by doing:

PUT /synonym_test
{
  "settings": {
    "index": {
      "analysis": {
        "analyzer": {
          "synonym_analyzer": {
            "tokenizer": "lowercase",
            "filter": ["porter_stem", "my_synonyms"]
          }
        },
        "filter": {
          "my_synonyms": {
            "type": "synonym",
            "synonyms_path": "elasticsearch/dictionaries/synonyms.txt",
            "updateable": true
          }
        }
      }
    }
  }
}

GET /synonym_test/_analyze
{
  "analyzer": "synonym_analyzer",
  "text": "notebook"
}

This works correctly. Now I want to update my synonyms.txt file with new entries, which I can do by using the Extensions API . Once I've uploaded the new file correctly, I need all the nodes to pick up the new configuration and this is where I'm getting in trouble.

How do I restart the nodes so that they pick up the new config files?

I've tried using the API /deployments/:deployment_id/elasticsearch/:ref_id/_restart , which does restart the deployment, but the new synonyms file is not picked up.

Welcome to our community! :smiley:

The first thing I would suggest is to raise this with the Cloud Support team, they should be able to help you with this.

If you don't have any luck there then let us know.

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