Skip to content

Commit 1746603

Browse files
meili-bors[bot]AlexWongcurquiza
authored
Merge #779
779: Add attributesToSearchOn to IndexSearchRequest r=curquiza a=wyz8883 PARAMETER # Pull Request ## Related issue “Fixes #<issue_number>” ## What does this PR do? - ...When I use Non-federated multi-search, I find that I can't add attributesToSearchOn, I'm sure there is no this parameter in IndexSearchRequest.I added one attributesToSearchOn. ## PR checklist Please check if your PR fulfills the following requirements: - [X] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [X] Have you read the contributing guidelines? - [X] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: AlexWong <Alex.Wong@gln.com> Co-authored-by: Clémentine <clementine@meilisearch.com>
2 parents a4e50d2 + 9ff37ec commit 1746603

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public class IndexSearchRequest {
3434
protected Boolean showRankingScore;
3535
protected Boolean showRankingScoreDetails;
3636
protected Double rankingScoreThreshold;
37+
private String[] attributesToSearchOn;
3738
private FederationOptions federationOptions;
3839

3940
/**
@@ -99,7 +100,8 @@ public String toString() {
99100
.putOpt("filter", this.filterArray)
100101
.putOpt("showRankingScore", this.showRankingScore)
101102
.putOpt("showRankingScoreDetails", this.showRankingScoreDetails)
102-
.putOpt("rankingScoreThreshold", this.rankingScoreThreshold);
103+
.putOpt("rankingScoreThreshold", this.rankingScoreThreshold)
104+
.putOpt("attributesToSearchOn", this.attributesToSearchOn);
103105

104106
return jsonObject.toString();
105107
}

0 commit comments

Comments
 (0)