Click or drag to resize

SearchHighlight Constructor

Initializes a new instance of the SearchHighlight class.

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public SearchHighlight(
	string path,
	double score,
	SearchHighlightText[] texts
)

Parameters

path
Type: SystemString
document field which returned a match.
score
Type: SystemDouble
Score assigned to this result.
texts
Type: MongoDB.Driver.SearchSearchHighlightText
Objects containing the matching text and the surrounding text.
See Also