We are integrating Algolia search in company but have faced the problem with categories faceting. The problem is we have products which can belong to multiple categories. But those categories have parent categories, so there is a categories tree with products that can be basically anywhere.
Should we implement this by variants of product (https://www.algolia.com/doc/tutorials/full-text-search/distinct/)- so every product gets duplicated for every root category? Or are we able to implement this using some mechanism that already exists in Algolia?
Thanks in advance