title: ElasticSearch Java Client querying nested objects
body: <p>How do I convert this kind of query.</p>
  
  <pre><code>{
    "query": {
      "nested": {
        "path": "consultations",
        "query": {
          "bool": {
            "must": [
              {
                "match": {
                  "consultations.prescriptions": "alfuorism"
                }
              },
              {
                "match": {
                  "consultations.Diagnosis": "Fever"
                }
              }
            ]
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>To a Java Client query using QueryBuilders</p>