android_small_white Created with Sketch.

Manage Indices

Create an index

You don’t need to explicitly create an index, it will be automatically created the first time you add an object or set settings.

List indices - listIndexesAsync

You can list all your indices along with their associated information (number of entries, disk size, etc.) with the listIndexesAsync method:

client.listIndexesAsync(new CompletionHandler() {
    @Override
    public void requestCompleted(JSONObject content, AlgoliaException error) {
        // [...]
    }
});