Vepler logo
v2.157.0

Metric sub-aggregations over sale history now return computed values

Metric sub-aggregations nested under a bucket on the same sale-history or listings path now return their computed values on the property aggregate endpoint.

Changed

  • On POST /v1/property/aggregate, a metric sub-aggregation over a nested field now returns its computed value when it sits inside a bucket aggregation on the same nested path. This covers the saleHistory fields (saleHistoryDate, saleHistoryAmount) and the listings fields.
  • For example, a date_histogram on saleHistoryDate with an avg of saleHistoryAmount returns a real average sold price for every bucket, giving you a monthly average sold-price series directly from the endpoint. Sub-aggregations whose nested path differs from their parent continue to resolve as before, so mixed-path aggregations are unaffected. This makes bucketed time series and value distributions over sale history usable straight from the aggregate endpoint.

Affected endpoints