Hey, my name’s John, I’m currently doing work on a website where we’d ideally like to have some pages ‘belong’ to a particular brand, related to a collection. We are differentiating this in a few ways but mainly on template suffix.
I’m trying to find a way to only search within the current page’s associated collection. In particular, looking at the autocomplete box. For instance, I don’t want to show a product from another brand as a suggestion if I’m searching from a brand’s About page.
I’m not sure how to go about implementing this and can’t find any documentation for it. I’m open to conditionally including algolia assets/snippets with different values based on the page, or uploading indexes with brand-specific prefixes and changing the prefix value conditionally.
Any guidance you can give me is appeciated.