Is it possible to annotate each result in a result set?

I have two types stored in an index: locations and activities. An activity
has a 'relation' to a location - ie. an activity takes place at a location.

Is it possible to get a location search result set that includes the count
of activities at each location? Sort of like annotating each item in the
location results?

(This is my second attempt to post - apologies if this is a duplicate post!)

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
To view this discussion on the web visit
For more options, visit