text

fun <T> text(property: KProperty<T>): Bson

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

Return

the index specification @mongodb.driver.manual core/text text index

Parameters

property

the property to create a text index on