0

I recently upgraded Elastic Search from v 1.7 to 2.4. I'm working in python and using pyes library to communicate to Elastic Search. In my code, I have this line in place to refresh index.

con.indices.refresh()

This was working fine with ES 1.7, however with ES 2.4, I'm getting this exception:

ElasticSearchException: Unknown exception type: 408

Refreshing via curl works just fine, i.e

curl localhost:9200/_refresh

Is there any changes in Elastic Search 2.4 that is breaking this piece of code? Thanks

Ibrahim
  • 837
  • 2
  • 13
  • 24

1 Answers1

0

Did you update the version of pyes library. There is a version compatibility between ES and pyes. Which is strict.

refer to the documentation here. http://pyelasticsearch.readthedocs.io/en/latest/migrate/

lazywiz
  • 1,091
  • 2
  • 13
  • 26
  • Thanks for your answer lazywiz. I'm already using the latest version of pyes. The documentation you mentioned is to migrate to pyelasticsearch, which is a separate library I guess. – Ibrahim Nov 12 '16 at 17:51