Aggregations on Subset of Queries


I am wondering if it is possible to run aggregations on a subset of your queries. For example, I have facet filters where I want the counts to persist when someone clicks the various filters. The filters would obviously affect the documents that get returned but I want the counts to remain as if that filter were not applied. The counts would only change if someone changed their search in the free form text search.

Is this possible?

I think you are looking for the post_filter feature:

Hope that helps

Perfect. Exactly what I need. Thanks!