A compat layer for migrating from ElasticSearch.pm to the new Elasticsearch.pm