Need Help regarding renaming index

(Phani Nadiminti) #1

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.


(Magnus Bäck) #2

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.

(Phani Nadiminti) #3

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?


(Magnus Bäck) #4

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

(system) #5