Class SearchHighlightText
Represents the matching text or the surrounding text of a highlighting result.
public sealed class SearchHighlightText
- Inheritance
-
SearchHighlightText
- Inherited Members
Constructors
SearchHighlightText(HighlightTextType, string)
Initializes a new instance of the SearchHighlightText class.
public SearchHighlightText(HighlightTextType type, string value)
Parameters
type
HighlightTextTypeType of search highlight.
value
stringText from the field which returned a match.
Properties
Type
Gets or sets the type of text, matching or surrounding.
[BsonElement("type")]
[BsonRepresentation(BsonType.String)]
public HighlightTextType Type { get; }
Property Value
Value
Gets the text from the field which returned a match.
[BsonElement("value")]
public string Value { get; }