createIndex

suspend fun createIndex(indexName: String, fields: Collection<String>, common: CommonOptions = CommonOptions.Default, ignoreIfExists: Boolean = false, deferred: Boolean = false, numReplicas: Int? = null, with: Map<String, Any?> = emptyMap())

Creates a secondary index.