title: how to distinct value after query in elasticsearch
body: <p>I use elasticsearch like :</p>
  
  <pre><code>{
    "query": {
      "match_phrase": {
        "title": "my title"
      }
    },
    "aggs": {
      "unique_title": {
        "cardinality": {
          "field": "title"
        }
      }
    }
  }
  </code></pre>
  
  <p>i just want to sql</p>
  
  <pre><code>select distinct title from table where title like '%my title%'
  </code></pre>
  
  <p>the result give me multiple same results, "cardinality" dont worked whit "query"</p>
  
  <p>if you dont understand me, Please forgive my poor English ^_^</p>