createPayloadIndex

abstract suspend fun createPayloadIndex(name: String, field: String, schema: PayloadSchemaType, wait: Boolean)

Create a payload field index (PUT /collections/{name}/index).


abstract suspend fun createPayloadIndex(name: String, field: String, params: PayloadIndexParams, wait: Boolean)

Create a payload field index with the parameters that index type accepts (PUT /collections/{name}/index). The type is carried by params.