Skip to content

Commit

Permalink
Merge #779
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Clémentine <[email protected]>
  • Loading branch information
3 people authored Oct 3, 2024
2 parents a4e50d2 + 9ff37ec commit 1746603
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/meilisearch/sdk/IndexSearchRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class IndexSearchRequest {
protected Boolean showRankingScore;
protected Boolean showRankingScoreDetails;
protected Double rankingScoreThreshold;
private String[] attributesToSearchOn;
private FederationOptions federationOptions;

/**
Expand Down Expand Up @@ -99,7 +100,8 @@ public String toString() {
.putOpt("filter", this.filterArray)
.putOpt("showRankingScore", this.showRankingScore)
.putOpt("showRankingScoreDetails", this.showRankingScoreDetails)
.putOpt("rankingScoreThreshold", this.rankingScoreThreshold);
.putOpt("rankingScoreThreshold", this.rankingScoreThreshold)
.putOpt("attributesToSearchOn", this.attributesToSearchOn);

return jsonObject.toString();
}
Expand Down

0 comments on commit 1746603

Please sign in to comment.