Greetings everyoune!
My questions is:
Is there any way to process aggregations depend on filter (bool query or post_filter) and aggregations based on query only?
I.e.
I have a document - product. I have several products in index.
The product structure is:
id
name
categoryId
price.
All I want is to find products by "name" property, then collect information about categories that has the document matches query, then filter them by categoryId (cat1, cat2) then I want to get an information about maximum and minimum product price within the categories (cat1 and cat2)