On Fri, May 2, 2014 at 4:47 PM, Jose A. Garcia <[email protected]> wrote:

> That's closer but I would get all the possible values and counts for
> 'fieldA' and the total sum of 'size' for my result set, but I need the sum
> of sizes for each value of 'fieldA', so it's a combination of both terms
> and sum, but none seems to give me exactly what I need...
>

This should work: The sum aggregation is _under_ the terms aggregation, so
sums would be computed for each unique value of 'fieldA'.

-- 
Adrien Grand

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4exmQ2AfYy_bPQkuVWoEHqJA_5D%3DvAw9O7Si5zaakzRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to