I am building a product filter for a web shop using Algolia. In order to build my refinement list, I need all facet values from a specific collection. So for example, if I visit a collection called 'Bicycles' I would like to retrieve some of the following facets with their values:
I would be nice if I could do something like
//* is for the wilcard to get every facet insteaad if specifying the ones I want.
index.searchForFacetValues('*', {
filters: 'collections:bicycles'
}).then(({ facetHits }) => {
console.log(facetHits);
});
I've searched on the docs of Algolia but, I couldn't find anything about it.