jprante / elasticsearch-knapsack

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

Fix for Issue #17. #30

Closed nicktgr15 closed 10 years ago

nicktgr15 commented 10 years ago

Hello,

This is a fix for issue #17 at which the import target parameter fails when a file extension is provided. I just check if the file extension is provided and if it does then the appending is omitted.

Index imports now work in both cases:

curl -XPOST 'localhost:9200/testing/_import?target=/tmp/testing'

and

curl -XPOST 'localhost:9200/testing/_import?target=/tmp/testing.tar.gz'
jprante commented 10 years ago

Thanks, appreciated!