You should be able to do it using a script by returning an array that contains `count` occurrences of `bucket`.
On Tue, Feb 24, 2015 at 2:20 AM, Bas <[email protected]> wrote: > Hello everyone, > > Our database contains prebucketed data, for example: > > "metric": [ > { > "bucket": 2832, > "count": 25 > } > ] > > We want to retrieve percentiles based on the bucket/count combination. > Consider this simplified example: > > bucket count > 1 3 > 5 4 > > Should be viewed as the following set when calculating percentiles: > > 111 5555 > > Is there a way to do this using script metric aggregations or should we > write a plugin for this? > > Thank you, regards, > > Bas > > > -- > 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/60f91b12-4f69-48fd-9fff-c5d5762bad8c%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/60f91b12-4f69-48fd-9fff-c5d5762bad8c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAL6Z4j7mcpXpuPMRcFGjZcEpDCP0L-V28YGmmi-ffL_3ORMU5g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
