fun text(search: String, textSearchOptions: TextSearchOptions = TextSearchOptions()): Bson
(source)
Creates a filter that matches all documents matching the given the search term with the given text search options.
textSearchOptions
- the text search options to use
Return
the filter
Mongodb
.driver.manual reference/operator/query/text $text