Click or drag to resize

IndexKeysTDocument Class

A builder for specifying the keys for an index.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.BuildersIndexKeysTDocument

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax
public static class IndexKeys<TDocument>

Type Parameters

TDocument
The type of the document.

The IndexKeysTDocument type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAscending
Sets one or more key names to index in ascending order.
Public methodStatic memberDescending
Sets one or more key names to index in descending order.
Public methodStatic memberGeoSpatialTMember
Sets the key name to create a geospatial index on.
Public methodStatic memberGeoSpatialHaystackTMember(ExpressionFuncTDocument, TMember) Obsolete.
Sets the key name to create a geospatial haystack index on.
Public methodStatic memberGeoSpatialHaystackTMember, TAdditionalMember(ExpressionFuncTDocument, TMember, ExpressionFuncTDocument, TAdditionalMember) Obsolete.
Sets the key name and additional field name to create a geospatial haystack index on.
Public methodStatic memberGeoSpatialSphericalTMember
Sets the key name to create a spherical geospatial index on.
Public methodStatic memberHashedTMember
Sets the key name to create a hashed index on.
Public methodStatic memberText(ExpressionFuncTDocument, IEnumerableString)
Sets one or more key names to include in the text index.
Public methodStatic memberText(ExpressionFuncTDocument, String)
Sets one or more key names to include in the text index.
Public methodStatic memberTextAll
Create a text index that indexes all text fields of a document.
Public methodStatic memberWildcard
Sets a wildcard key to the index.
Top
See Also