Creating an index with Elasticsearch 5.0 throws a Bad Request exception

核能气质少年 提交于 2019-12-07 05:07:30

It used to be possible to create an index using either POST or PUT, but since the Pull Request #20001, it is not possible anymore to use POST and only PUT is allowed.

So you simply need to change POST with PUT in your code and it should work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!