Table of Contents

Class SearchHighlightText

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

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 HighlightTextType

Type of search highlight.

value string

Text 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

HighlightTextType

Value

Gets the text from the field which returned a match.

[BsonElement("value")]
public string Value { get; }

Property Value

string