Table of Contents

Method MetaSearchHighlights

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MetaSearchHighlights<TDocument>(ProjectionDefinition<TDocument>, string)

Combines an existing projection with a search highlights projection.

public static ProjectionDefinition<TDocument> MetaSearchHighlights<TDocument>(this ProjectionDefinition<TDocument> projection, string field)

Parameters

projection ProjectionDefinition<TDocument>

The projection.

field string

The field.

Returns

ProjectionDefinition<TDocument>

A combined projection.

Type Parameters

TDocument

The type of the document.