Class SortDefinitionExtensions

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Extension methods for SortDefinition.

public static class SortDefinitionExtensions

Inheritance

SortDefinitionExtensions

Inherited Members

Methods

Ascending(SortDefinition, FieldDefinition)

Combines an existing sort with an ascending field.

Ascending(SortDefinition, Expression<Func<TDocument, object>>)

Combines an existing sort with an ascending field.

Descending(SortDefinition, FieldDefinition)

Combines an existing sort with an descending field.

Descending(SortDefinition, Expression<Func<TDocument, object>>)

Combines an existing sort with an descending field.

MetaSearchScoreAscending(SortDefinition)

Creates a ascending sort on the computed relevance score of atlas search.

MetaSearchScoreDescending(SortDefinition)

Creates a descending sort on the computed relevance score of atlas search.

MetaTextScore(SortDefinition, string)

Combines an existing sort with a descending sort on the computed relevance score of a text search. The field name should be the name of the projected relevance score field.