FilterDefinitionBuilderTDocumentText Method (String, TextSearchOptions) |
Creates a text filter.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
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