title: Elastic Search Query to select distinct values
body: <p>HI I want to get data from elastic search. I have sql query like this.</p>
  
  <p>select distinct(brandvalue) from brands where brandvalue='nike';</p>
  
  <p>I need this is in elastic search, I tried online converter to convert but it not works for me. Please help</p>
  
  <p>I have data like this in elastic search db
  [ Nike M NikeCourt Dry Tennis Short,
  Nike M NikeCourt Dry Tennis Short,
  Nike,
  Nike W NikeCourt Pure Tennis Skirt,
  Nike W NikeCourt Pure Tennis Skirt,
  Nike M NikeCourt Dry Tennis Shirt,
  Nike]
  AMONG these when i seached with value nike . I want the result like below</p>
  
  <p>[Nike M NikeCourt Dry Tennis Short,
  Nike,
  Nike W NikeCourt Pure Tennis Skirt,
  Nike M NikeCourt Dry Tennis Shirt]</p>