algoliasearch/src/offline/java/com/algolia/search/saas/MirroredIndex.java
public Request searchForFacetValuesOffline(final @NonNull String facetName, final @NonNull String text, @Nullable Query query, @NonNull final CompletionHandler completionHandler) {
        if (!mirrored) {
            throw new IllegalStateException("Offline requests are only available when the index is mirrored");
        }
        final Query queryCopy = query != null ? new Query(query) : null;
        return getClient().new AsyncTaskRequest(completionHandler, getClient().localSearchExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return _searchForFacetValuesOffline(facetName, text, queryCopy);
            }
        }.start();
    }
public Request searchForFacetValuesOffline(final @NonNull String facetName, final @NonNull String text, @Nullable Query query, @NonNull final CompletionHandler completionHandler) {
        if (!mirrored) {
            throw new IllegalStateException("Offline requests are only available when the index is mirrored");
        }
        final Query queryCopy = query != null ? new Query(query) : null;
        return getClient().new AsyncTaskRequest(completionHandler, getClient().localSearchExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return _searchForFacetValuesOffline(facetName, text, queryCopy);
            }
        }.start();
    }
Search for facet values, explicitly targeting the offline mirror, not the online API.