elasticsearch: use aggregated value for filtering elasticsearch: use aggregated value for filtering elasticsearch elasticsearch

elasticsearch: use aggregated value for filtering


It is like HAVING clause in SQL terms. It is not possible in current Elasticsearch Release.

In the upcoming 2.0 release, with newly introduced Pipeline Aggregation, it should be possible then.

More: https://www.elastic.co/blog/out-of-this-world-aggregations