taraslayshchuk / es2csv

Export from an Elasticsearch into a CSV file
Apache License 2.0
511 stars 190 forks source link

Export _score and _id #6

Closed voyager-data closed 8 years ago

voyager-data commented 8 years ago

When I add _score or _id to the list of export fields, the resulting file has neither column. Is this expected behavior? Getting the relevancy score with results is important to my use case.

Thank you!

taraslayshchuk commented 8 years ago

Hi!

I have never used this fields. I added -e arg for exporting meta-fields: _id, _index, _type, _score. Changes are in export_meta_fields branch.

$ pip uninstall es2csv
$ pip install git+https://github.com/taraslayshchuk/es2csv.git@export_meta_fields

Could you please test it?

voyager-data commented 8 years ago

Works like a charm! Thank you!

On Wed, Jun 8, 2016 at 7:27 PM, Taras Layshchuk notifications@github.com wrote:

Hi!

I have never used this fields. I added -e arg for exporting meta-fields https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-fields.html: _id, _index, _type, _score. Changes are in export_meta_fields https://github.com/taraslayshchuk/es2csv/tree/export_meta_fields branch.

$ pip uninstall es2csv $ pip install git+https://github.com/taraslayshchuk/es2csv.git@export_meta_fields

Could you please test it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/taraslayshchuk/es2csv/issues/6#issuecomment-224761486, or mute the thread https://github.com/notifications/unsubscribe/ACL5rqmwuNjQdZr0laYTJqsmy-Qb5ibGks5qJ0_1gaJpZM4IxUaP .

taraslayshchuk commented 8 years ago

Awesome! I am going to release new version with this bugfix into pypi. Stay tuned!