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.
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.