hi @marcocampigli
Are you referring to a facet widget that refines the results based on available product_category terms for given products?
If yes, then you should be able to customize the templates with a refinementList widget from Algolia, and specify that you want that specific widget to refine based on that product_category taxonomy. You’ll want to make sure that they’re in your product indexes, and based on what I’ve seen they probably already are.
refinementList documentation can be seen at https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/
The templates we ship already use refinementList for post tags, in case you want to switch that out.
You’ll also need to make sure that the product_category attribute is set to be able to be faceted. You can do that via the dashboard at minimum, based on quick steps at https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/how-to/declaring-attributes-for-faceting/#using-the-dashboard however if you want to have them declared to be facet-able via code, I can draw up some steps to do that with the plugin and WP filter hooks.
Thank you Michael.
I have only one other question:
I have indexed only the serchable_post (exluding page and post) because if I also index the post_product table I push to algolia over 40.000 records (in fact the post_product are “duplicated” in serchable_post.
There are a workaround to send in serachable_post the hierarchical category of products in order to be able to faceting.
Have a great day!
Not quite sure what the question is, from your last reply.