Need Help regarding renaming index

Hi All,

is it possible to rename index/mapping in elastic search using Java API or using any HTTP requests.
I read knapsack plugin in es but i didn't found java API to rename index/mapping please suggest me any ways to rename index in elastic search how to achieve this feature.


Sorry, renaming indexes isn't possible. You'll have to reindex the data into a new index. Mappings don't have names so I'm not sure what you mean by renaming a mapping.

Thank you magnus for quick reply sorry I mean to say it is indextype. can we rename indextype ?

is it also not possible with knapsack plugin?


Assuming you're talking about document types, no, they can't be renamed without reindexing.