mallocator / Elasticsearch-Exporter

A small script to export data from one Elasticsearch cluster into another.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file→ES old index name recreated

jze opened this issue · comments

I renamed an index via ES→file→ES export. In addition to the new index a second index with the old name has been created. Here is a script to reproduce the behaviour:

# Create an index and some demo data
curl -XPUT localhost:9200/myindex
curl -XPUT localhost:9200/myindex/a/1 -d '{"name":"John Doe"}'

# Export the data into a file
nodejs exporter.js -t file -sh localhost -si myindex -tf /tmp/

# Delete the index
curl -XDELETE localhost:9200/myindex

# Import with a new index name
nodejs exporter.js -s file -th localhost -si myindex -sf /data -ti newindex

curl http://localhost:9200/_cat/indices

The result in my experiments is

yellow open myindex  5 1 0 0  575b  575b 
yellow open newindex 5 1 1 0 2.8kb 2.8kb 
commented

Can't recreate this behavior in the latest version.