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

mapping import loses metadata #4

Open
podollb opened this issue Apr 29, 2015 · 1 comment
Open

mapping import loses metadata #4

podollb opened this issue Apr 29, 2015 · 1 comment

Comments

@podollb
Copy link

podollb commented Apr 29, 2015

It seems that your export mapping collects all the data (from the mapping) but your import mappings doesn't import everything.

For example, I see this in my mapping file from an export (which is correct):

    "dynamic" : "strict",
    "_id" : {
      "path" : "key"
    },
    "_timestamp" : {
      "enabled" : true,
      "store" : true
    },
    "_ttl" : {
      "enabled" : true
    },

But after I import this mapping, the above data is lost. If I manually take the JSON (for any given mapping) out of the mapping export file, I can manually PUT it (via curl) and it saves everything correctly.

@skratchdot
Copy link
Owner

Sorry about this. I vaguely remember running into something similar at some point (but thought I fixed it). Are you importing the mapping into a new index?

Do you have a simplified example (i.e. a file I can test that doesn't work when importing into a new index using the cli tool, but does work when using a curl statement)?

I'll try to take a look at this when I get a bit of spare time. I might try to update the version numbers for the node dependencies as well (in case this is a 1.4 vs 1.5 issue)...

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