Table of Contents

Constructor SearchHighlight

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

SearchHighlight(string, double, SearchHighlightText[])

Initializes a new instance of the SearchHighlight class.

public SearchHighlight(string path, double score, SearchHighlightText[] texts)

Parameters

path string

document field which returned a match.

score double

Score assigned to this result.

texts SearchHighlightText[]

Objects containing the matching text and the surrounding text.