How to rename Index


(Thanigaivelan) #1

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


(Mark Walkom) #2

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


(Amar - Persistent Systems) #3

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" } }
]
}'


(system) #4

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