Hi, everyone!
Consider that I have million of documents with its categories A, B and C. I am searching to show the query results and requesting the facets (for a filter) to know if these categories have documents. But, the facets retrieve a counter of all documents (based on given query), but I want to know just if the category has at least one item. How can I improve this aggregation preventing facets to count every (million) documents?