Updated toElasticsearch for new core.Index syntax
Merge pull request #274 from jacqui/master

Updated toElasticsearch for new core.Index syntax