SearchHighlightOptionsTDocument Constructor (SearchPathDefinitionTDocument, NullableInt32, NullableInt32) |
Namespace:
MongoDB.Driver.Search
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax public SearchHighlightOptions(
SearchPathDefinition<TDocument> path,
Nullable<int> maxCharsToExamine = null,
Nullable<int> maxNumPassages = null
)
Public Sub New (
path As SearchPathDefinition(Of TDocument),
Optional maxCharsToExamine As Nullable(Of Integer) = Nothing,
Optional maxNumPassages As Nullable(Of Integer) = Nothing
)
new :
path : SearchPathDefinition<'TDocument> *
?maxCharsToExamine : Nullable<int> *
?maxNumPassages : Nullable<int>
(* Defaults:
let _maxCharsToExamine = defaultArg maxCharsToExamine null
let _maxNumPassages = defaultArg maxNumPassages null
*)
-> SearchHighlightOptions
Parameters
- path
- Type: MongoDB.Driver.SearchSearchPathDefinitionTDocument
The document field to search. - maxCharsToExamine (Optional)
- Type: SystemNullableInt32
maximum number of characters to examine. - maxNumPassages (Optional)
- Type: SystemNullableInt32
The number of high-scoring passages.
See Also