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 ?