Hello Good folks,
This query is from a sample video tutorial. The sample is not Elasticsearch 6.0 version. I am not sure if this is something to do with the lastest version.
Trying to find the average car price under each make of the car. I am getting "type": "unknown_named_object_exception",
"reason": "Unknown BaseAggregationBuilder [mycalc_avgprice]"
GET /vehicles/_search
{
"aggs": {
"mysearchname": {
"terms": {
"field": "make.keyword"
} },
"aggs": {
"mycalc_avgprice": {
"avg": {
"field": "price"
}
}
}
}
}