AgileWorksOrg / elasticsearch-river-csv

CSV river for ElasticSearch
Apache License 2.0
91 stars 45 forks source link

Possibility to overwrite the existing document #6

Closed gluay closed 10 years ago

gluay commented 10 years ago

Hi,

First of all, thank you for the plugin. I am using it and encounter an issue that the plugin creates a random id. In our scenario, we want to use a field as an id so that the existing document will be replaced if the id exists.

I would like to request to add this feature in the plugin.

The workaround I have so far is to use this code instead:

currentRequest.add(Requests.indexRequest(indexName).type(typeName).create(false).source(builder));

Best Regards, Gluay

vtajzich commented 10 years ago

Hi,

i've forked the repo and updated the river with this possibility. Will create a pull request during weekend with some other fixes and improvements ;-)

vtajzich commented 10 years ago

Done