title: Spring data elasticsearch's CriteriaQuery vs SearchQuery
body: <p>I am in reference to Spring Data Elasticsearch's <strong><code>CriteriaQuery</code></strong> and <strong><code>SearchQuery</code></strong> (both from <code>org.springframework.data.elasticsearch.core.query</code> package).</p>
  
  <p>I am not sure when I should be using a <code>SearchQuery</code> (or its implementation) or a <code>CriteriaQuery</code>.</p>
  
  <p>It seems the <code>SearchQuery</code> relies upon elasticsearch's native <code>QueryBuilders</code> whereas the <code>CriteriaQuery</code> is specific to Spring Data. Is this right?</p>
  
  <p>Can someone please point out the difference between these two types of Query?</p>