Pipeline aggs buckets_path using Integer.valueOf()

(Gustavo Orsi) #1

I want to use the "_key" from a terms aggregation (where I know all bucket keys are numbers represented as String) in the buckets_path.
There is no way of using "_key" in the buckets_path because we will get: "buckets_path must reference either a number value or a single value numeric metric aggregation, got: java.lang.String".... but we can't use Integer.valueOf(_key) neither.

Anyone knows any other way ?

(Colin Goodheart-Smithe) #2

Pointing a pipeline aggregation at the key of the terms aggregation is not currently possible. Could you maybe explain what you are trying to achieve, such as what you want the pipeline aggregation to do and why?

(system) #3

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