Method MetaSearchScore
MetaSearchScore<TDocument>(ProjectionDefinition<TDocument>, string)
Combines an existing projection with a search score projection.
public static ProjectionDefinition<TDocument> MetaSearchScore<TDocument>(this ProjectionDefinition<TDocument> projection, string field)
Parameters
projectionProjectionDefinition<TDocument>The projection.
fieldstringThe field.
Returns
- ProjectionDefinition<TDocument>
A combined projection.
Type Parameters
TDocumentThe type of the document.