# Annotating results?

**URL:** <https://discuss.elastic.co/t/annotating-results/19804>\
**Category:** Elasticsearch\
**Created:** [September 15, 2014, 11:12pm UTC](https://discuss.elastic.co/t/annotating-results/19804 "2014-09-15T23:12:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Addison](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@James\_Addison](https://discuss.elastic.co/u/James_Addison)\
**Post date:** [September 15, 2014, 11:12pm UTC](https://discuss.elastic.co/t/annotating-results/19804/1 "2014-09-15T23:12:50Z")

</div>

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 location in  
location results, I guess?

Thanks.

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fff4cf9c-a926-431b-86f7-ad1f9850f86e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fff4cf9c-a926-431b-86f7-ad1f9850f86e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:02am UTC](https://discuss.elastic.co/t/annotating-results/19804/2 "2017-07-06T01:02:06Z")

</div>

Closed on July 6, 2017, 1:02am UTC


