Table of Contents

Method MetaTextScore

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

MetaTextScore(string)

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 MetaTextScore(string key)

Parameters

key string

The name of the computed relevance score field.

Returns

SortByBuilder

The builder (so method calls can be chained).