Skip to content

Commit f82f1f8

Browse files
AlexWongAlexWong
authored andcommitted
THIS COMMIT WILL INDEXSEARCHREQUEST ADD ATTRIBUTESTOSEARCHON
PARAMETER
1 parent 245b124 commit f82f1f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/meilisearch/sdk/IndexSearchRequest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public class IndexSearchRequest {
3434
protected Boolean showRankingScore;
3535
protected Boolean showRankingScoreDetails;
3636
protected Double rankingScoreThreshold;
37+
private String[] attributesToSearchOn;
38+
3739

3840
/**
3941
* Constructor for MultiSearchRequest for building search queries with the default values:
@@ -93,7 +95,8 @@ public String toString() {
9395
.putOpt("filter", this.filterArray)
9496
.putOpt("showRankingScore", this.showRankingScore)
9597
.putOpt("showRankingScoreDetails", this.showRankingScoreDetails)
96-
.putOpt("rankingScoreThreshold", this.rankingScoreThreshold);
98+
.putOpt("rankingScoreThreshold", this.rankingScoreThreshold)
99+
.putOpt("attributesToSearchOn", this.attributesToSearchOn);
97100

98101
return jsonObject.toString();
99102
}

0 commit comments

Comments
 (0)