'Using Python/Elasticsearch package to clone a index
So there is instruction on clone ES index: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clone-index.html.
But I can't find it how to do it using the Python/elasticsearch package. Can someone show example please?
Solution 1:[1]
It seems you are one API call way, as per the doc
This should look like:
from elasticsearch import Elasticsearch
client = Elasticsearch(....)
index="index-1"
target="index-1-cloned"
client.indices.clone(index, target)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
