How to aggregate non-nested fields in a nested aggregation?

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"
                  }
                }
              }
            }
          }
        }
      }
    }
  }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.