algoliasearch/src/offline/java/com/algolia/search/saas/OfflineIndex.java
public Request buildFromRawResources(@NonNull final Resources resources, @NonNull final int settingsResId, @NonNull final int[] objectsResIds, @Nullable CompletionHandler completionHandler) {
        return getClient().new AsyncTaskRequest(completionHandler, getClient().localBuildExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return _buildFromRawResources(resources, settingsResId, objectsResIds);
            }
        }.start();
    }
public Request buildFromRawResources(@NonNull final Resources resources, @NonNull final int settingsResId, @NonNull final int[] objectsResIds, @Nullable CompletionHandler completionHandler) {
        return getClient().new AsyncTaskRequest(completionHandler, getClient().localBuildExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return _buildFromRawResources(resources, settingsResId, objectsResIds);
            }
        }.start();
    }
public Request buildFromRawResources ( @ NonNull final Resources resources , @ NonNull final int settingsResId , @ NonNull final int [ ] objectsResIds , @ Nullable CompletionHandler completionHandler ) { return getClient ( ) . new AsyncTaskRequest ( completionHandler , getClient ( ) . localBuildExecutorService ) { @ NonNull @ Override protected JSONObject run ( ) throws AlgoliaException { return _buildFromRawResources ( resources , settingsResId , objectsResIds ) ; } } . start ( ) ; }
Build the index from local data stored in raw resources.

@param resources A {@link Resources} instance to read resources from.
@param settingsResId Resource identifier of the index settings, in JSON format.
@param objectsResIds Resource identifiers of the various objects files. Each file must contain an array of
objects, in JSON format.
@param completionHandler Optional completion handler to be notified of the build's outcome.
@return A cancellable request.

**Note:** Cancelling the request does *not* cancel the build; it merely prevents the completion handler from
being called.
Build the index from local data stored in raw resources .