Compatability with elasticsearchclient v0.3+