[英]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.