I integrated Magento 2 algolia extension and enabled Instant Search for category pages. I understand that the category facet is an hierarchicalMenu type and when we load any category page, Category facet shows all other categories.
But our requirement is to show only those categories which are the resulted products are assigned to.
For e.g, as shown in the above screenshot, category New has 16 results and some of these products are also assigned to other Categories like (DJ, Lighting etc.)
In this scenario, we need to show only those categories DJ, Lighting etc along with New, but not all other categories like Accessories (as shown in screenshot).
Also the product count for all these categories in facet should not greater than 16, as total number of products in the current category New is 16 only.
I tried by adding following parameter to category facet configuration, but it results only the subcategory of New in the facet results.
Please let me know how to achieve this ?