How to pass raw query to elastic search and handle the raw JSON Response