changed elasticsearchAdapter to prepareSearch on alias