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

Index settings not imported if using map #89

Open
jfletcher-nuxeo opened this issue Nov 24, 2015 · 1 comment
Open

Index settings not imported if using map #89

jfletcher-nuxeo opened this issue Nov 24, 2015 · 1 comment

Comments

@jfletcher-nuxeo
Copy link

I'm using knapsack to migrate an index from one name to another in the same instance. To be clear I'm using 1.5.2.2 but I don't think it matters for this.

Steps:

  • Export an index "foo".
  • Import it with map; map=\{"foo":"new-foo"\}.

Result: the index settings are lost; the index "new-foo" has default settings.

Workaround: export with map. Import as normal. The new index will include the settings.

The workaround is totally appropriate but I had to stumble upon it. If this is a not a bug, maybe just a readme update in the import section would be sufficient.

@jprante
Copy link
Owner

jprante commented Nov 24, 2015

Yes, this is kind of a glitch. I have to add a check that index settings of mapped index names must be recognized when importing. An export with map points to the correct index name.

Sorry for the inconvenience.

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