Closed flaneuse closed 2 years ago
Allow nested aggregations to group by a particular value and count, then subdivide it by an additional term. For example, in the outbreak API, you can facet first by @type, then by date to get a histogram of resources by date and type.
@type
date
I think this is as simple as adding ALLOW_NESTED_AGGS = True to the config file (example)
ALLOW_NESTED_AGGS = True
Allow nested aggregations to group by a particular value and count, then subdivide it by an additional term. For example, in the outbreak API, you can facet first by
@type
, then bydate
to get a histogram of resources by date and type.