Querying aggregation results

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

You mean a range aggregation:

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

?