title: How to convert (Elastic Search query) in to java efficiently?
body: <p>I get the results well by typing the below code in kibana(Elastic Search). Can someone please show me how to do the exact smaething from java?. All i want to do is extract the "comments" parts of the objects and add it into a string array. </p>
  
  <pre><code> GET local_rs_4_0_0_*/review/_search
  {
  "_source": ["comment"],
  "query": {
  "bool": {
  
    }
   }
  }
  
  
  {
  "took": 4,
  "timed_out": false,
  "_shards": {
  "total": 3,
  "successful": 3,
  "failed": 0
  },
  "hits": {
  "total": 2,
  "max_score": 1,
  "hits": [
    {
      "_index": "local_rs_4_0_0_app_reviewspotter_1552993787904",
      "_type": "review",
      "_id": "r_anuradhapura_1552994866938",
      "_score": 1,
      "_source": {
        "comment": "Test Comment"
      }
    },
    {
      "_index": "local_rs_4_0_0_app_reviewspotter_1552993787904",
      "_type": "review",
      "_id": "r_anuradhapura_1552994964151",
      "_score": 1,
      "_source": {
        "comment": "Test"
      }
    }
   ]
  }
  }
  </code></pre>