Hello, experts. I am trying to customize an aggregation via "Json Input" for a horizontal bar chart, and the data I am using is the flight demo data. The purpose is that I want to specify aggregations for every filter on x-axis.
I inputed the script like:
{
"aggs": {
"3": {
"terms": {
"field": "DestCityName",
"order": {
"_count": "desc"
},
"size": 5
}
}
}
}
But the system indicates me "search error". Is there any suggestion?