Facet on two fields

Hi everyone

I'm playing around with elasticsearch and all is nice and fast.
I'm not used to all the factes yet and there is a query I can't figure out
how to do .
Say I have users and these users have cars and this list can move from day
to day as they sell or buy other cars.
I'm trying to count all distinct cars for every user or even just one user
on a daily basis or just in general.

Another way of saying it would be I have an entry with user_id , and car
name for every time the user byes a car, I want to count for earch user how
different cars they have bought.

Is there a facet for this kind query, I was hoping on term stats but since
I have car names and not values id does not work

Thanks for your help

--
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.
For more options, visit https://groups.google.com/groups/opt_out.