I’m working on an e-commerce site, and building a brands filter using the refinement connector. Each brand has a name and a slug, with the brand being what the user sees, and the slug being what gets passed onto the API amongst other internal hidden functionality.
Index structure is as follows:
productName: Rustic Copper Shoes
name: Quitzon, Klein and Hegmann,
The marketplace is currently working perfectly fine with using
brand.name for the attribute field, however, I want to add a callback from the checkbox to handle the slug, not name. The slug doesn’t appear anywhere in Algolia’s query response, and it looks like I can’t simply use
brand as the attribute, with the hopes of getting both name and slug to play with.
Does anyone have any guidance?