public Request searchForFacetValuesOffline(final @NonNull String facetName, final @NonNull String text, @Nullable Query query, @NonNull final CompletionHandler completionHandler) {
    """
	Search for facet values, explicitly targeting the offline mirror, not the online API.
    """
        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();
    }
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.
Search for facet values explicitly targeting the offline mirror not the online API .