new toElasticsearch block works with current version of elastigo
Merge pull request #547 from jacqui/new-elasticsearch

new toElasticsearch block works with current version of elastigo