Initial but essentially fully-formed script to pull CSV out of ElasticSearch