title: Query in Elasticsearch to return all results for a given phrase
body: <p>I am using the below code to query the Elasticsearch index but I am not getting back all of the documents matching a given phrase. It returns back specific documents when we search for that particular specific documents For example if I were to ask for phrase 'groovy', it is not bringing me back all the documents with name field groovy. But If I were to search for 'Help.groovy', it gives me back just Help.groovy. Appreciate if someone could help me. </p>
  
  <pre><code>private def performSearchUsingElasticSearch(String q) {
      def escaped =  QueryParser.escape(q.toLowerCase().trim())
      def result = elasticSearchService.search(escaped)
      return result
  }
  </code></pre>
  
  <p><strong>Sample Documents</strong></p>
  
  <pre><code> "hits": [
   {
      "_index": "a.b.c.d",
      "_type": "svnInfo",
      "_id": "183",
      "_score": 1,
      "_source": {
         "author": "abc1200",
         "name": "VendorSpec.groovy",
         "svnUrl": "http://svnrepo/tools/VendorSpec.groovy",
         "date": "Wed May 13 09:35:05 EDT 2015"
      }
   },  {
      "_index": "a.b.c.d",
      "_type": "svnInfo",
      "_id": "184",
      "_score": 1,
      "_source": {
         "author": "abc1200",
         "name": "Help.groovy",
         "svnUrl": "http://svnrepo/tools/Help.groovy",
         "date": "Wed May 13 09:35:05 EDT 2015"
      }
  </code></pre>