module Mongo::Index
Contains constants for indexing purposes.
@since 2.0.0
Constants
- ALL
Wildcard constant for all.
@since 2.1.0
- ASCENDING
Specify ascending order for an index.
@since 2.0.0
- COLLECTION
Constant for the indexes collection.
@since 2.0.0
- DESCENDING
Specify descending order for an index.
@since 2.0.0
- GEO2D
Specify a 2d Geo index.
@since 2.0.0
- GEO2DSPHERE
Specify a 2d sphere Geo index.
@since 2.0.0
- GEOHAYSTACK
Specify a geoHaystack index.
@since 2.0.0
- HASHED
Specify a hashed index.
@since 2.0.0
- TEXT
Encodes a text index.
@since 2.0.0