AgileWorksOrg / elasticsearch-river-csv

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

Add a 'field_id_include' flag to still include the id field in the source even if 'field_id' is used. #46

Closed ESPNSTI closed 9 years ago

ESPNSTI commented 9 years ago

I came across a need to designate a column as the id field, while also needing to retain it in the source.

I added a 'field_id_include' flag that, when true, will retain the id column in the source. If 'field_id_include' is false, it will behave as before and not include the id column in the source. If 'field_id' is not set, then the 'field_id_include' flag will have no effect.