Table of Contents

Method MetaSearchScore

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MetaSearchScore(FieldDefinition<TSource>)

Creates a search score projection.

public ProjectionDefinition<TSource> MetaSearchScore(FieldDefinition<TSource> field)

Parameters

field FieldDefinition<TSource>

The field.

Returns

ProjectionDefinition<TSource>

A search score projection.

MetaSearchScore<TField>(Expression<Func<TSource, TField>>)

Creates a search score projection.

public ProjectionDefinition<TSource> MetaSearchScore<TField>(Expression<Func<TSource, TField>> field)

Parameters

field Expression<Func<TSource, TField>>

The field.

Returns

ProjectionDefinition<TSource>

A search score projection.

Type Parameters

TField