Method MetaSearchHighlights
MetaSearchHighlights<TDocument>(ProjectionDefinition<TDocument>, FieldDefinition<TDocument>)
Combines an existing projection with a search highlights projection.
public static ProjectionDefinition<TDocument> MetaSearchHighlights<TDocument>(this ProjectionDefinition<TDocument> projection, FieldDefinition<TDocument> field)Parameters
- projectionProjectionDefinition<TDocument>
- The projection. 
- fieldFieldDefinition<TDocument>
- The field. 
Returns
- ProjectionDefinition<TDocument>
- A combined projection. 
Type Parameters
- TDocument
- The type of the document. 
MetaSearchHighlights<TDocument>(ProjectionDefinition<TDocument>, Expression<Func<TDocument, object>>)
Combines an existing projection with a search highlights projection.
public static ProjectionDefinition<TDocument> MetaSearchHighlights<TDocument>(this ProjectionDefinition<TDocument> projection, Expression<Func<TDocument, object>> field)Parameters
- projectionProjectionDefinition<TDocument>
- The projection. 
- fieldExpression<Func<TDocument, object>>
- The field. 
Returns
- ProjectionDefinition<TDocument>
- A combined projection. 
Type Parameters
- TDocument
- The type of the document.