getAllIndexes

suspend fun getAllIndexes(keyspace: Keyspace, common: CommonOptions = CommonOptions.Default): List<QueryIndex>

Returns all indexes from the collection identified by keyspace.

NOTE: To get all indexes in a scope or bucket, use the overload with bucket, scope, and collection parameters.


suspend fun getAllIndexes(bucket: String, @SinceCouchbase(value = "7.0") scope: String? = null, @SinceCouchbase(value = "7.0") collection: String? = null, common: CommonOptions = CommonOptions.Default): List<QueryIndex>

Returns all indexes from a bucket, scope, or collection.

If scope and collection are null, returns all indexes in the bucket. If scope is non-null and collection is null, returns all indexes in the scope. If scope and collection are both non-null, returns all indexes in the collection.

It is an error to specify a non-null collection and a null scope.