switched to official elasticsearch.js client