But I don't get the result.
"aggregations": {
"car-condition": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
GET /vehicles/_search
{
"aggs": {
"car-condition": {
"terms": {
"field": "{condition.keyword}"
},
"aggs": {
"car-avg-price": {
"avg": {
"field": "price"
}
}
}
}
}
}