algolia / algolia-pwa-demo

3 stars 1 forks source link

fix: don't require recommend for brands plugin #32

Closed sbellone closed 1 month ago

sbellone commented 1 month ago

If you currently run the demo without Recommend, the popup doesn't display because the recommend index isn't found.

Since Recommend is complex to setup, I propose to not rely on it by default, so anyone can run the demo more easily.

This PR uses the same approach than #31 to fetch the most popular brand facets from the search results. I'm also leaving the recommend code commented to give pointer about how to integrate Recommend.

Note: since our demo index is not fully trained, this approach actually works better:


SFCC-389