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.
'*'.freeze
- ASCENDING =
Specify ascending order for an index.
1
- DESCENDING =
Specify descending order for an index.
-1
- GEO2D =
Specify a 2d Geo index.
'2d'.freeze
- GEO2DSPHERE =
Specify a 2d sphere Geo index.
'2dsphere'.freeze
- GEOHAYSTACK =
Deprecated.
Specify a geoHaystack index.
'geoHaystack'.freeze
- TEXT =
Encodes a text index.
'text'.freeze
- HASHED =
Specify a hashed index.
'hashed'.freeze
- COLLECTION =
Constant for the indexes collection.
'system.indexes'.freeze