You will be able to do this soon. See:
https://github.com/elasticsearch/elasticsearch/pull/7075
Thanks,
Matt Weber
On Aug 9, 2014 10:44 AM, James Cook djamesc...@gmail.com wrote:
There seems to be some reluctance by ES team to provide scrip table
aggregators, or perhaps it's on a roadmap and
i keep finding that i want to do more generic metric aggregations than are
currently available
e.g. to do a like behaviour so given docs:
{name: foo, location: london, revenue: 100}
{name: foo, location: paris, revenue: 500}
{name: bar, location: sydney, revenue: 15}
{name: bar, location: new