title: How to search by any word in any field with ElasticSearch rest high-level client?
body: <p>I tried to search any contract witch contains some key word, but my code is incorrect:</p>
  
  <pre><code> public Collection&lt;Map&lt;String, Object&gt;&gt; findContractsByWord(String index, String type, String word) throws CommonUserException {
      SearchRequest searchRequest = new SearchRequest(index);
      searchRequest.types(type);
      SearchSourceBuilder sourceBuilder = new SearchSourceBuilder();
      sourceBuilder.query(QueryBuilders.termQuery("", word));
      searchRequest.source(sourceBuilder);
      SearchResponse searchResponse;
      try (RestHighLevelClient client = getClient()) {
          searchResponse = client.search(searchRequest);
      } catch (IOException e) {
          throw new CommonUserException("Exception in elasticsearch", "Exception in elasticsearch");
      }
      SearchHit[] hits = searchResponse.getHits().getHits();
      Collection&lt;Map&lt;String, Object&gt;&gt; contracts = new LinkedList&lt;&gt;();
      for (SearchHit hit : hits) {
          contracts.add(hit.getSourceAsMap());
      }
      return contracts;
  }
  </code></pre>
  
  <p>Maybe someone knows how to do this with rest high-level client? (elastic 6.2.4)</p>