change to use res.send for elasticsearch return