The prices.adult field in "lowest_price" is non-nested fields in a nest.
The current "lowest_price" value is null.
How can I get that value?
// Aggregation code
"aggs": {
"destination": {
"nested": {
"path": "locations"
},
"aggs": {
"destination_filter": {
"filter": {
"terms": {
"locations.id": [
479
]
}
},
"aggs": {
"count": {
"terms": {
"field": "locations.name"
},
"aggs": {
"lowest_price": {
"min": {
"field": "prices.adult"
}
}
}
}
}
}
}
}
}