Correctly instantiate ElasticsearchWrapper

It was changed to require mappings in the constructor.