Compatability with elasticsearchclient v0.3+
Merge pull request #372 from mrvisser/elasticsearchclient-0.3-fix

Compatibility with elasticsearchclient v0.3+