# Reload\_search\_analyzers

**URL:** <https://discuss.elastic.co/t/reload-search-analyzers/228002>\
**Category:** Elasticsearch\
**Created:** [April 14, 2020, 9:29pm UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002 "2020-04-14T21:29:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![chari](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chari](https://discuss.elastic.co/u/chari)\
**Post date:** [April 14, 2020, 9:29pm UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/1 "2020-04-14T21:29:28Z")

</div>

i have the following sequence of python api calls to ES.

```auto
from elasticsearch import Elasticsearch
es=Elasticsearch([{'host':'127.0.0.1','port':9200}])
es.indices.reload_search_analyzers(index="myindex")

but I see an error message 
AttributeError: 'IndicesClient' object has no attribute 'reload_search_analyzers'

```

any ideas will be appreciated.

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 14, 2020, 10:10pm UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/2 "2020-04-14T22:10:10Z")

</div>

Hello @chari

I think you're getting this error because you're using the Python Elasticsearch client version 7.2 or older, while this API was first introduced in Elasticsearch version 7.3+

In particular, it seems be present in [7.5.1](https://elasticsearch-py.readthedocs.io/en/7.5.1/api.html#elasticsearch.client.IndicesClient.reload_search_analyzers) or 7.6.0

The cluster must be in version 7.3+

---

<div class="post-metadata">

**Author:** ![chari](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chari](https://discuss.elastic.co/u/chari)\
**Post date:** [April 14, 2020, 10:28pm UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/3 "2020-04-14T22:28:59Z")

</div>

Hello Luca,  
Thanks for your reply.  
I am using elasticsearch 7.3.  
ok, I will move to 7.6.  
thanks,  
chari

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 14, 2020, 10:56pm UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/4 "2020-04-14T22:56:11Z")

</div>

The cluster can stay on Elasticsearch 7.3.  
The Elasticsearch client must be at least on 7.5.1.  
But we recommend to align Elasticsearch & Client versions in general.

---

<div class="post-metadata">

**Author:** ![chari](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chari](https://discuss.elastic.co/u/chari)\
**Post date:** [April 15, 2020, 3:51pm UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/5 "2020-04-15T15:51:31Z")

</div>

Thanks for the info.

Regards.

---

<div class="post-metadata">

**Author:** ![chari](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chari](https://discuss.elastic.co/u/chari)\
**Post date:** [April 21, 2020, 4:50pm UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/6 "2020-04-21T16:50:35Z")

</div>

doesn't seem to be there in 7.5.1 either.

```auto
AttributeError: 'IndicesClient' object has no attribute 'reload_search_analyzers'

```

---

<div class="post-metadata">

**Author:** ![chari](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chari](https://discuss.elastic.co/u/chari)\
**Post date:** [April 21, 2020, 5:28pm UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/7 "2020-04-21T17:28:57Z")

</div>

i had not confirmed that my elasticsearch client was indeed running 7.5.1. After confirming that I find that the command works !

Thanks.

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 22, 2020, 11:15am UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/8 "2020-04-22T11:15:23Z")

</div>

Glad it worked! Please mark the answer as solved if possible

---

<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:** [May 20, 2020, 11:16am UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002/9 "2020-05-20T11:16:21Z")

</div>

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