Use Aggreagation on Elastic1.0 RC to calculate porcentage of results

Hi,

I have a doubt about aggregation in Elasticsearch 1.0.
Have any way to calculate the porcentage in a aggregation result using
buckets and scripts?
I mean, can I use a result of a 2 buckets to do b1/b2, where b1 is the
total and b2 is the partial result?

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4787dc37-7442-440f-a68e-6236cb45542b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Anyone?

Em sexta-feira, 17 de janeiro de 2014 13h06min46s UTC-2, Diego Marinho de
Oliveira escreveu:

Hi,

I have a doubt about aggregation in Elasticsearch 1.0.
Have any way to calculate the porcentage in a aggregation result using
buckets and scripts?
I mean, can I use a result of a 2 buckets to do b1/b2, where b1 is the
total and b2 is the partial result?

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6413dd2c-4f80-45fb-8227-e484b48f7481%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.