Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 6f7ed64

Browse files
authored
Client: Correct usage of strategy in multipleQueries (#108)
1 parent 7cf4e9c commit 6f7ed64

File tree

1 file changed

+1
-1
lines changed
  • algoliasearch/src/main/java/com/algolia/search/saas

1 file changed

+1
-1
lines changed

algoliasearch/src/main/java/com/algolia/search/saas/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ protected JSONObject multipleQueries(List<IndexQuery> queries, String strategy)
491491
JSONObject body = new JSONObject().put("requests", requests);
492492
String path = "/1/indexes/*/queries";
493493
if (strategy != null) {
494-
path += "?strategy=" + strategy;
494+
body.put("strategy", strategy);
495495
}
496496
return postRequest(path, body.toString(), true);
497497
} catch (JSONException e) {

0 commit comments

Comments
 (0)