title: Count distinct on elastic search
body: <p>How to achieve count distinct function on elastic search type using sql4es driver?</p>
  
  <pre><code>Select distinct inv_number , count(1) from invoices;
  </code></pre>
  
  <p>But it returns the total count of the particular invoice number.</p>