taraslayshchuk / es2csv

Export from an Elasticsearch into a CSV file
Apache License 2.0
510 stars 191 forks source link

Request and store es version info and use to modify the object select… #75

Open dkoneill opened 4 years ago

dkoneill commented 4 years ago

This is a proposed fix for Issue #74 in which the a breaking change in ES 7.0 modified the structure of the object containing the number of hits.

This change requests and stores the ES info object which is later used by the packaging.version() routine to make a choice on how to retrieve the number of hits from the ES query. This enables backwards compatibility with ES instances older than 7.0.

sushantkumr commented 3 years ago

Verified this fix. It works on my end. Thank you @dkoneill