# Querying aggregation results

**URL:** <https://discuss.elastic.co/t/querying-aggregation-results/2487>\
**Category:** Elasticsearch\
**Created:** [June 11, 2015, 3:09pm UTC](https://discuss.elastic.co/t/querying-aggregation-results/2487 "2015-06-11T15:09:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@simon](https://discuss.elastic.co/u/simon)\
**Post date:** [June 11, 2015, 3:09pm UTC](https://discuss.elastic.co/t/querying-aggregation-results/2487/1 "2015-06-11T15:09:58Z")

</div>

Hi all,

I have some aggregations running across some data that show me for a given id the number of times different events occurred.

e.g.

id=1  
event1: 21  
event2: 10  
event3: 35

What I would like to be able to do is run a fuzzy search across these aggregations to identify similar documents in a find me more like this style query. Is this even possible?

I know I can fuzzy match against numerical values so I hope that if I can do it across aggregation results it will make my life a lot easier. Otherwise I assume it would be best to compute the aggregations outside of elastic and load in documents in the structure I have described.

Thanks,

Simon

---

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [November 29, 2015, 8:25pm UTC](https://discuss.elastic.co/t/querying-aggregation-results/2487/2 "2015-11-29T20:25:06Z")

</div>

You mean a range aggregation:

[https://www.elastic.co/guide/en/elasticsearch/reference/1.4/search-aggregations-bucket-range-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.4/search-aggregations-bucket-range-aggregation.html)

?

---

<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 5, 2017, 11:35pm UTC](https://discuss.elastic.co/t/querying-aggregation-results/2487/3 "2017-07-05T23:35:02Z")

</div>


