swift_small_white Created with Sketch.

Manage Indices

Create an index

To create an index, you need to perform any indexing operation like:

  • set settings
  • add object

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!)")