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
the text search options to use