Table of Contents

Method MetaTextScore

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

MetaTextScore(Expression<Func<TDocument, object>>)

Adds a key to sort by the computed relevance score when using text search. The name of the key should be the name of the projected relevance score field.

public SortByBuilder<TDocument> MetaTextScore(Expression<Func<TDocument, object>> memberExpression)

Parameters

memberExpression Expression<Func<TDocument, object>>

The member expression specifying the projected field.

Returns

SortByBuilder<TDocument>

The builder (so method calls can be chained).