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

Commit

Permalink
feat(Index): Overload for setSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
PLNech committed Jan 16, 2019
1 parent 23b7bbb commit a5881e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions algoliasearch/src/main/java/com/algolia/search/saas/Index.java
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,16 @@ public JSONObject getSettings(int formatVersion, @Nullable RequestOptions reques
return client.getRequest("/1/indexes/" + encodedIndexName + "/settings", urlParameters, false, requestOptions);
}

/**
* Set settings for this index, forwarding to its replicas.
*
* @param settings the settings object.
* @throws AlgoliaException
*/
public JSONObject setSettings(JSONObject settings) throws AlgoliaException {
return setSettings(settings, true, null);
}

/**
* Set settings for this index.
*
Expand Down

1 comment on commit a5881e5

@0842854175
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ขอบคุณครับ

Please sign in to comment.