jprante / elasticsearch-knapsack

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

solved problem with trailing ./ in tar archive and json object format in _settings file of an index #10

Closed kmcs closed 11 years ago

kmcs commented 11 years ago

If the relative path in an archive was with a trailing ./ the import failed! fixed in RestImportAction.java

Another Bugfix was the json object of _settings file of an index. It was only one object with key value, the keys contained the hierarchy with dots. the result of that is, the index was imported with the default settings. I fixed this with very ~strange..

jprante commented 11 years ago

Thanks for the relative path issue report. I think I will fix file paths with the URI class and the normalize() method to avoid such tar entries.

jprante commented 11 years ago

Json objects in the _settings file in "dot hierarchy notation" are correct.