swift_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 - listIndexes

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

client.listIndexes(completionHandler: { (content, error) -> Void in
    if error == nil {
        print("Indexes: \(content!)")