[英]How to clone elasticsearch index to another index using python requests library?
我正在尝试使用以下代码按照标题进行操作:
resp = requests.post("http://es_7:9200/my-index/_clone/new-my-index")
我得到这个错误:
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://es_7:9200/my-index/_clone/new-my-index
似乎它不是现有查询,但根据文档,它应该可以正常工作。 https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clone-index.html
可能是什么问题? 提前致谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.