How to rename Index

Hi,

How to rename index in elasticsearch 2.2.1, i want to rename the temp document to original document after updating the temp document.

Thanks

Thanigaivelan

You cannot, https://www.elastic.co/blog/changing-mapping-with-zero-downtime will be the closest thing you can do.

Hi,

You can create alias name for the index, this will not require any downtime.

curl -XPOST 'http://localhost/_aliases' -d '

{
"actions" : [
{ "add" : { "index" : "items", "alias" : "my_items" } }
]
}'

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.