My objects have a
type attribute with values like “document”, “form”, “ticket”, etc. When I query with
facets: [ 'type' ] I get the count of objects for each type correctly. When a user filters by
type, is it possible to continue to get the facet counts for
type without the effect of the filter?
For instance, if there are 3 “documents” and 0 “forms” and the user chooses “forms”, I’d like the count of “documents” to still read “3”. I figure I can send 2 queries at once, one to get the counts with no filter applied and one to get the results … just wondering if there is a better way?