Click or drag to resize

IndexKeys Class

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

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax
public static class IndexKeys

The IndexKeys 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 memberGeoSpatial
Sets the key name to create a geospatial index on.
Public methodStatic memberGeoSpatialHaystack(String)
Sets the key name to create a geospatial haystack index on.
Public methodStatic memberGeoSpatialHaystack(String, String)
Sets the key name and additional field name to create a geospatial haystack index on.
Public methodStatic memberGeoSpatialSpherical
Sets the key name to create a spherical geospatial index on.
Public methodStatic memberHashed
Sets the key name to create a hashed index on.
Public methodStatic memberText
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.
Top
See Also