Changes made : 1 — merge in master 2 — 1st arg — es —> REQUEST OPTS …  index, type NO NO 3 — esObject.on('data', processData); changed to  (rawData, totalHits, hits, aggs) 4 — esObject.setQuery( uri , queryData);
Changes made :
1 — merge in master
2 — 1st arg — es —> REQUEST OPTS …  index, type NO NO
3 — esObject.on('data', processData); changed to  (rawData, totalHits, hits, aggs)
4 — esObject.setQuery( uri , queryData);

paytm/es