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

Commit a5881e5

Browse files
committed
feat(Index): Overload for setSettings
1 parent 23b7bbb commit a5881e5

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,16 @@ public JSONObject getSettings(int formatVersion, @Nullable RequestOptions reques
14581458
return client.getRequest("/1/indexes/" + encodedIndexName + "/settings", urlParameters, false, requestOptions);
14591459
}
14601460

1461+
/**
1462+
* Set settings for this index, forwarding to its replicas.
1463+
*
1464+
* @param settings the settings object.
1465+
* @throws AlgoliaException
1466+
*/
1467+
public JSONObject setSettings(JSONObject settings) throws AlgoliaException {
1468+
return setSettings(settings, true, null);
1469+
}
1470+
14611471
/**
14621472
* Set settings for this index.
14631473
*

0 commit comments

Comments
 (0)