Is it possible to get Count of distinct field value with groupby in ElasticSearch 1.2.1?

Hi all,

I have a set of data as follows:

Date | Unique Visitor Id | Country

13-Mar-2015 | abc | USA
13-Mar-2015 | xyz | India
13-Mar-2015 | xyz | India
14-Mar-2015 | pqr | Japan
14-Mar-2015 | xyz | USA

I want to fire a query similar to following:
Select count(distinct unique_visitor_id) from table group by Country where
date='13-Mar-2015'

Please let me know how I can do this in ES 1.2.1?

Regards,
Rakesh

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2799cb52-b16b-4cc8-9c96-4d330e67e1fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.