Skip to content

Commit

Permalink
fix(types): add abTestID to SearchResponse (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jul 27, 2022
1 parent 76c7061 commit 05059f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/client-search/src/types/SearchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ export type SearchResponse<TObject = {}> = {
*/
indexUsed?: string;

/**
* If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID.
*/
abTestID?: number;

/**
* In case of AB test, reports the variant ID used. The variant ID is the position in the array of variants (starting at 1).
*/
Expand Down

0 comments on commit 05059f2

Please sign in to comment.