text

fun text(search: String, textSearchOptions: TextSearchOptions = TextSearchOptions()): Bson

Creates a filter that matches all documents matching the given the search term with the given text search options.

Return

the filter

Parameters

search

the search term

textSearchOptions

the text search options to use