# Can't get \_reload\_search\_analyzers to reload search analyzers

**URL:** <https://discuss.elastic.co/t/cant-get-reload-search-analyzers-to-reload-search-analyzers/286074>\
**Category:** Elasticsearch\
**Created:** [October 6, 2021, 9:39pm UTC](https://discuss.elastic.co/t/cant-get-reload-search-analyzers-to-reload-search-analyzers/286074 "2021-10-06T21:39:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nahh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nahh/32/83181_2.png) [@nahh](https://discuss.elastic.co/u/nahh)\
**Post date:** [October 6, 2021, 9:39pm UTC](https://discuss.elastic.co/t/cant-get-reload-search-analyzers-to-reload-search-analyzers/286074/1 "2021-10-06T21:39:09Z")

</div>

I'm trying to update my synonyms file and I'm using the \_reload\_search\_analyzers API as documented here:

> **[Reload search analyzers API | Elasticsearch Guide \[7.x\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-reload-analyzers.html)**

However, it doesn't seem to be reloading my search analyzer. I see a reload log entry but nothing that references the specific analyzer, and the response to the API call doesn't mention the analyzer as it should, and most importantly the synonym changes aren't taking effect. The synonyms that exist prior to my attempt to reload are working right and the new synonyms take effect after restarting the node.

Here's some details:

Mapping:

```auto
{
  "idx-name" : {
    "mappings" : {
      "properties" : {
        "name" : {
          "type" : "search_as_you_type",
          "doc_values" : false,
          "max_shingle_size" : 3,
          "analyzer" : "default",
          "search_analyzer" : "synonym"
        }
      }
    }
  }
}

```

Settings:

```auto
{
  "idx-name" : {
    "settings" : {
      "index" : {
        "routing" : {
          "allocation" : {
            "include" : {
              "_tier_preference" : "data_content"
            }
          }
        },
        "number_of_shards" : "1",
        "provided_name" : "idx-name",
        "creation_date" : "1633555026980",
        "analysis" : {
          "filter" : {
            "synonym" : {
              "type" : "synonym",
              "synonyms_path" : "analysis/synonyms.txt",
              "updatable" : "true"
            }
          },
          "analyzer" : {
            "synonym" : {
              "filter" : [
                "lowercase",
                "synonym"
              ],
              "tokenizer" : "whitespace"
            }
          }
        },
        "number_of_replicas" : "1",
        "uuid" : "amM6jvpdTqWykGVCHBhsBw",
        "version" : {
          "created" : "7130099"
        }
      }
    }
  }
}

```

API response:

```auto
POST /idx-name/_reload_search_analyzers
{
  "_shards" : {
    "total" : 2,
    "successful" : 1,
    "failed" : 0
  },
  "reload_details" : [
    {
      "index" : "idx-name",
      "reloaded_analyzers" : [],
      "reloaded_node_ids" : [
        "GVW3GnF5QkC3KOuaJRnOBw"
      ]
    }
  ]
}

```

Log entry:

```auto
{"type": "server", "timestamp": "2021-10-06T21:31:36,568Z", "level": "INFO", "component": "o.e.i.m.MapperService", "cluster.name": "docker-cluster", "node.name": "aae21bcaef6f", "message": " [idx-name] reloading search analyzers", "cluster.uuid": "WqmGUDv9RZ2mTnUGSvdHzw", "node.id": "GVW3GnF5QkC3KOuaJRnOBw" }

```

Am I doing something wrong? For what it is worth, the "settings" API is returning `"updateable": "true"` but I am passing a real boolean when creating the index per the docs.

I'm running ES 7.15.0 in a single-node configuration inside a docker container.

---

<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 3, 2021, 9:39pm UTC](https://discuss.elastic.co/t/cant-get-reload-search-analyzers-to-reload-search-analyzers/286074/2 "2021-11-03T21:39:17Z")

</div>

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