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

Commit 7fe0102

Browse files
committed
fix(Index): expose addObject(obj, requestOptions)
1 parent 8c89606 commit 7fe0102

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/Index.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ public void clearSearchCache() {
10121012
* @param requestOptions Request-specific options.
10131013
* @throws AlgoliaException
10141014
*/
1015-
protected JSONObject addObject(JSONObject obj, @Nullable RequestOptions requestOptions) throws AlgoliaException {
1015+
public JSONObject addObject(JSONObject obj, @Nullable RequestOptions requestOptions) throws AlgoliaException {
10161016
return client.postRequest("/1/indexes/" + encodedIndexName, /* urlParameters: */ null, obj.toString(), false, requestOptions);
10171017
}
10181018

0 commit comments

Comments
 (0)