I want to reindex some data from other server to my new server. I want to use python script for this.
I use the elasticsearch.py plugin.
Does anyone here tried this?
I have a defficulty with regards to the body of the document.
index = es_dest.index(
index = 'new_index',
doc_type = log,
id = 'asdadas',
body = data_body
)
data_body variable is the one that i got inside the ['hits']['hits']