I learned how to write a ES query for calculating the percentile, but it seems to work for one field. If I want percentile on multiple fields, it does not work.
"aggs": {
"distinct_UUID": {
"terms": {
"field": "cust_uuid"
},
"aggs": {
"perf_percentiles" : {
"percentiles" : {
"field":"A",
"field":"B"
}
}
The code above works fine if I have just one field (field A or B, but not both) in the percentiles section, but I want to have 10 fields or more. How can I solve for it?