Before you begin
This guide assumes familiarity with React InstantSearch and that your records share similarities, making them eligible for variants.Preview

Search results showing personalized product variants
- Color variants exist in blue, silver, black, pink, and yellow.
- Each user sees the variant that best matches their color preferences.
- Only one variant per product appears to maintain clean results.
- The system tracks which variant users click to refine future personalization.
Structure your records
Each product variant should be a separate record, structured with:- A shared
variantKeyto group related variants. - A unique
objectIDfor tracking interactions. - Specific variant attributes, such as color and size.
JSON
Configure Advanced Personalization
In Advanced Personalization, add thecolor attribute to the attributes for affinities.
Configure distinct results
Use the distinct feature to display only one variant per product in search results:- Set
attributeForDistinctwith"variantKey"in the index settings. - Configure
distinctwith the number of variants to show in the search results, either in the index settings or at search time.