jprante / elasticsearch-knapsack

Knapsack plugin is an import/export tool for Elasticsearch
Apache License 2.0
472 stars 77 forks source link

Index settings not imported if using `map` #89

Open jfletcher-nuxeo opened 8 years ago

jfletcher-nuxeo commented 8 years ago

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:

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 commented 8 years ago

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.