Method MetaScoreDetails
MetaScoreDetails<TDocument>(ProjectionDefinition<TDocument>, FieldDefinition<TDocument>)
Combines an existing projection with a meta score details projection. This projection will retrieve any kind of scoreDetails metadata i.e. searchScoreDetails.
public static ProjectionDefinition<TDocument> MetaScoreDetails<TDocument>(this ProjectionDefinition<TDocument> projection, FieldDefinition<TDocument> field)
Parameters
projection
ProjectionDefinition<TDocument>The projection.
field
FieldDefinition<TDocument>The field.
Returns
- ProjectionDefinition<TDocument>
A combined projection.
Type Parameters
TDocument
The type of the document.
MetaScoreDetails<TDocument>(ProjectionDefinition<TDocument>, Expression<Func<TDocument, object>>)
Combines an existing projection with a meta score details projection. This projection will retrieve any kind of scoreDetails metadata i.e. searchScoreDetails.
public static ProjectionDefinition<TDocument> MetaScoreDetails<TDocument>(this ProjectionDefinition<TDocument> projection, Expression<Func<TDocument, object>> field)
Parameters
projection
ProjectionDefinition<TDocument>The projection.
field
Expression<Func<TDocument, object>>The field.
Returns
- ProjectionDefinition<TDocument>
A combined projection.
Type Parameters
TDocument
The type of the document.