algoliasearch/src/main/java/com/algolia/search/saas/Index.java
public Request setSettingsAsync(final @NonNull JSONObject settings, final boolean forwardToReplicas, @Nullable final RequestOptions requestOptions, @Nullable CompletionHandler completionHandler) {
        return getClient().new AsyncTaskRequest(completionHandler) {
            @NonNull
            @Override protected JSONObject run() throws AlgoliaException {
                return setSettings(settings, forwardToReplicas, requestOptions);
            }
        }.start();
    }
public Request setSettingsAsync(final @NonNull JSONObject settings, final boolean forwardToReplicas, @Nullable final RequestOptions requestOptions, @Nullable CompletionHandler completionHandler) {
        return getClient().new AsyncTaskRequest(completionHandler) {
            @NonNull
            @Override protected JSONObject run() throws AlgoliaException {
                return setSettings(settings, forwardToReplicas, requestOptions);
            }
        }.start();
    }
Set this index's settings (asynchronously).
<p>
Please refer to our <a href="https://www.algolia.com/doc/android#index-settings">API documentation</a> for the
list of supported settings.

@param settings          New settings.
@param requestOptions    Request-specific options.
@param completionHandler The listener that will be notified of the request's outcome.
@return A cancellable request.