FilterDefinitionBuilderTDocumentText Method (String, TextSearchOptions) |
Creates a text filter.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax public FilterDefinition<TDocument> Text(
string search,
TextSearchOptions options = null
)
Public Function Text (
search As String,
Optional options As TextSearchOptions = Nothing
) As FilterDefinition(Of TDocument)
member Text :
search : string *
?options : TextSearchOptions
(* Defaults:
let _options = defaultArg options null
*)
-> FilterDefinition<'TDocument>
Parameters
- search
- Type: SystemString
The search. - options (Optional)
- Type: MongoDB.DriverTextSearchOptions
The text search options.
Return Value
Type:
FilterDefinitionTDocumentA text filter.
See Also