Click or drag to resize

SearchHighlightOptionsTDocument Constructor (ExpressionFuncTDocument, Object, NullableInt32, NullableInt32)

Creates highlighting options.

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public SearchHighlightOptions(
	Expression<Func<TDocument, Object>> path,
	Nullable<int> maxCharsToExamine = null,
	Nullable<int> maxNumPassages = null
)

Parameters

path
Type: System.Linq.ExpressionsExpressionFuncTDocument, Object
The document field to search.
maxCharsToExamine (Optional)
Type: SystemNullableInt32
The maximum number of characters to examine on a document when performing highlighting for a field.
maxNumPassages (Optional)
Type: SystemNullableInt32
The number of high-scoring passages to return per document in the highlighting results for each field.

Return Value

Type: 
Highlighting options.
See Also