NIAID-Data-Ecosystem / nde-discovery-api

NIAID Data Ecosystem Discovery API, based on BioThings SDK
Apache License 2.0
0 stars 0 forks source link

Add nested aggregations to index config #8

Closed flaneuse closed 2 years ago

flaneuse commented 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.

flaneuse commented 2 years ago

I think this is as simple as adding ALLOW_NESTED_AGGS = True to the config file (example)