elasticsearch-knapsack icon indicating copy to clipboard operation
elasticsearch-knapsack copied to clipboard

Type Mapping is lost when exporting with renaming an index

Open richtmat opened this issue 10 years ago • 3 comments

I am exporting an index with the rename parameter:

curl -XPOST 'localhost:9200/my_index1/my_type/_export?map={"my_index1:"my_index2"}&path=/tmp/archive.tar'

after import curl -XPOST 'localhost:9200/my_index1/my_type/_import?path=/tmp/archive.tar' all mappings of my_type are lost.

Is there any option to preserve mappings or is this a bug?

richtmat avatar Jun 15 '15 12:06 richtmat

Same thing for index settings.

richtmat avatar Jun 16 '15 07:06 richtmat

Did you try renaming on import and not on export?

jprante avatar Jun 16 '15 18:06 jprante

Sorry for the confusion, I noticed that on creation of the issue and I did change my code, but not the issue.

So yes, I am renaming on import.

richtmat avatar Jun 16 '15 18:06 richtmat