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

Index settings not imported if using `map`

Open jfletcher-nuxeo opened this issue 10 years ago • 1 comments

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.

jfletcher-nuxeo avatar Nov 24 '15 03:11 jfletcher-nuxeo

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.

jprante avatar Nov 24 '15 10:11 jprante