Skip to content

Commit 05059f2

Browse files
authored
fix(types): add abTestID to SearchResponse (#1419)
1 parent 76c7061 commit 05059f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/client-search/src/types/SearchResponse.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ export type SearchResponse<TObject = {}> = {
155155
*/
156156
indexUsed?: string;
157157

158+
/**
159+
* If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID.
160+
*/
161+
abTestID?: number;
162+
158163
/**
159164
* In case of AB test, reports the variant ID used. The variant ID is the position in the array of variants (starting at 1).
160165
*/

0 commit comments

Comments
 (0)