Moving to elasticsearch.js API ver 1.2; updating application and search queries accordingly