Weighted percentile aggregation


I would like to compute a weighted percentile aggregation and I don't find a way to achieve this combining the existing aggregation.

My use case is I have documents that have an "age" property with a weight. This weight is a float number.
I would like to compute the percentile aggregation taking the weight as it's done for the WeightedAverage aggregation.

Does anybody have a trick to help me achieve this?

See https://github.com/elastic/elasticsearch/issues/41479

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.