textIndex

fun <T> KProperty<T>.textIndex(): Bson

Create an index key for a text index on the given property.

Return

the index specification