-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't require recommend for brands plugin (#32)
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: - the current demo displays `Lacy-D`, `Arlene` and `Lacy-S` - locally I now get `Apple`, `Sony`, `Lacy-D` and `Garmin` --- SFCC-390
- Loading branch information
Showing
1 changed file
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters