Skip to content

Commit 9601a11

Browse files
authored
fix(search): add abTestID to search result (#787)
1 parent 879a9f2 commit 9601a11

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

algoliasearch-core/src/main/java/com/algolia/search/models/indexing/SearchResult.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class SearchResult<T> implements Serializable {
3333
private Integer appliedRelevancyStrictness;
3434
private Integer nbSortedHits;
3535
private RenderingContent renderingContent;
36+
private Integer abTestID;
3637

3738
public Explain getExplain() {
3839
return explain;
@@ -142,6 +143,15 @@ public SearchResult<T> setRenderingContent(RenderingContent renderingContent) {
142143
return this;
143144
}
144145

146+
public Integer getAbTestID() {
147+
return abTestID;
148+
}
149+
150+
public SearchResult<T> setAbTestID(Integer abTestID) {
151+
this.abTestID = abTestID;
152+
return this;
153+
}
154+
145155
private Long offset;
146156
private Long length;
147157
private String parsedQuery;
@@ -398,6 +408,9 @@ public String toString() {
398408
+ '\''
399409
+ ", renderingContent="
400410
+ renderingContent
411+
+ '\''
412+
+ ", abTestID="
413+
+ abTestID
401414
+ '}';
402415
}
403416
}

0 commit comments

Comments
 (0)