The abTestVariantID
field in the JSON response of any search run with an A/B test enabled indicates which variant was used for a particular search. For this, set getRankingInfo
to true
in the InstantSearch API.
Enabling this setting introduces performance penalties.