algoliasearch/src/main/java/com/algolia/search/saas/Index.java
public JSONObject partialUpdateObjects(JSONArray inputArray, boolean createIfNotExists, @Nullable RequestOptions requestOptions) throws AlgoliaException {
        try {
            final String action = createIfNotExists ? "partialUpdateObject" : "partialUpdateObjectNoCreate";
            JSONArray array = new JSONArray();
            for (int n = 0; n < inputArray.length(); n++) {
                JSONObject obj = inputArray.getJSONObject(n);
                JSONObject operation = new JSONObject();
                operation.put("action", action);
                operation.put("objectID", obj.getString("objectID"));
                operation.put("body", obj);
                array.put(operation);
            }
            return batch(array, requestOptions);
        } catch (JSONException e) {
            throw new AlgoliaException(e.getMessage());
        }
    }
public JSONObject partialUpdateObjects(JSONArray inputArray, boolean createIfNotExists, @Nullable RequestOptions requestOptions) throws AlgoliaException {
        try {
            final String action = createIfNotExists ? "partialUpdateObject" : "partialUpdateObjectNoCreate";
            JSONArray array = new JSONArray();
            for (int n = 0; n < inputArray.length(); n++) {
                JSONObject obj = inputArray.getJSONObject(n);
                JSONObject operation = new JSONObject();
                operation.put("action", action);
                operation.put("objectID", obj.getString("objectID"));
                operation.put("body", obj);
                array.put(operation);
            }
            return batch(array, requestOptions);
        } catch (JSONException e) {
            throw new AlgoliaException(e.getMessage());
        }
    }
Partially Override the content of several objects.

@param inputArray     the array of objects to update (each object must contains an objectID attribute)
@param requestOptions Request-specific options.
@throws AlgoliaException