title: how to search by custom JSON use Elasticsearch High Level Rest Client
body: <p><a href="https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.3/index.html" rel="nofollow noreferrer">ES HighLevelRestClient</a></p>
  
  <p>how to use <code>ES HighLevelRestClient</code> search by a custom JSON.</p>
  
  <p>I have a query JSON like:</p>
  
  <pre><code>{
    "from": 0,
    "size": 20,
    "query": {
      "bool": {
      "must": [
          {
            "match": {
              "name": "test"
            }
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>this JSON generated by mustache template <a href="https://github.com/spullara/mustache.java" rel="nofollow noreferrer">mustache java</a> . cause I don't want to use <code>QueryBuilder</code>.</p>
  
  <p>so I want to know how to search by custom JSON use HightLevelClient?</p>