Looking for our logo?
How to display variations of a single product without hiding other products. Without handling variations, all variants of the best ranked result would show at the top of the search results, followed by all variants of the next ranked product.
You can group all variations using the distinct setting.
With the distinct setting, you retrieve the best ranked variation for each item. To determine which variation ranks best, use custom ranking. For example, add an attribute number_of_sales (descending) to the custom ranking. Now, for each product, the best-selling variation is retrieved from the index.
To group variations of the same item with distinct:
.png)
.png)
model .
.png)
Hi there 👋 Need assistance? Click here to allow functional cookies to launch our chat agent.
Thanks for visiting! 👋 I can help answer any questions about Algolia.
Hey! 👋 Got questions about pricing or plans?
Want to skip the form and book some time with our team right now?
Hey there! Would you like to book a meeting with our sales team now?
Thanks for visiting! 👋 I can help answer any questions about Algolia.