Working on the adapters after changing to elasticsearch-php