Module: Mongo::Index
- Defined in:
- lib/mongo/index.rb,
lib/mongo/index/view.rb
Overview
Contains constants for indexing purposes.
Defined Under Namespace
Classes: View
Constant Summary collapse
- ALL =
Wildcard constant for all.
'*'- ASCENDING =
Specify ascending order for an index.
1- DESCENDING =
Specify descending order for an index.
-1
- GEO2D =
Specify a 2d Geo index.
'2d'- GEO2DSPHERE =
Specify a 2d sphere Geo index.
'2dsphere'- GEOHAYSTACK =
Deprecated.
Specify a geoHaystack index.
'geoHaystack'- TEXT =
Encodes a text index.
'text'- HASHED =
Specify a hashed index.
'hashed'- COLLECTION =
Constant for the indexes collection.
'system.indexes'