Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Mapping is lost when exporting with renaming an index #78

Open
richtmat opened this issue Jun 15, 2015 · 3 comments
Open

Type Mapping is lost when exporting with renaming an index #78

richtmat opened this issue Jun 15, 2015 · 3 comments

Comments

@richtmat
Copy link

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
Copy link
Author

Same thing for index settings.

@jprante
Copy link
Owner

jprante commented Jun 16, 2015

Did you try renaming on import and not on export?

@richtmat
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants