algoliasearch/src/offline/java/com/algolia/search/saas/MirroredIndex.java
public Request searchForFacetValuesOnline(@NonNull String facetName, @NonNull String text, @Nullable Query query, @Nullable RequestOptions requestOptions, @NonNull final CompletionHandler completionHandler) {
        return super.searchForFacetValuesAsync(facetName, text, query, requestOptions, new CompletionHandler() {
            @Override
            public void requestCompleted(JSONObject content, AlgoliaException error) {
                try {
                    if (content != null)
                        content.put(JSON_KEY_ORIGIN, JSON_VALUE_ORIGIN_REMOTE);
                }
                catch (JSONException e) {
                    throw new RuntimeException(e); // should never happen
                }
                completionHandler.requestCompleted(content, error);
            }
        });
    }
public Request searchForFacetValuesOnline(@NonNull String facetName, @NonNull String text, @Nullable Query query, @Nullable RequestOptions requestOptions, @NonNull final CompletionHandler completionHandler) {
        return super.searchForFacetValuesAsync(facetName, text, query, requestOptions, new CompletionHandler() {
            @Override
            public void requestCompleted(JSONObject content, AlgoliaException error) {
                try {
                    if (content != null)
                        content.put(JSON_KEY_ORIGIN, JSON_VALUE_ORIGIN_REMOTE);
                }
                catch (JSONException e) {
                    throw new RuntimeException(e); // should never happen
                }
                completionHandler.requestCompleted(content, error);
            }
        });
    }
Search for facet values, explicitly targeting the online API, not the offline mirror.
Same parameters as {@link Index#searchForFacetValues(String, String, Query, CompletionHandler)}.