Module: Mongo::Index
| Relationships & Source Files | |
| Namespace Children | |
|
Classes:
| |
| Defined in: | lib/mongo/index.rb, lib/mongo/index/view.rb |
Overview
Contains constants for indexing purposes.
Constant Summary
-
ALL =
# File 'lib/mongo/index.rb', line 30
Wildcard constant for all.
'*'.freeze
-
ASCENDING =
# File 'lib/mongo/index.rb', line 35
Specify ascending order for an index.
1 -
COLLECTION =
# File 'lib/mongo/index.rb', line 71
Constant for the indexes collection.
'system.indexes'.freeze
-
DESCENDING =
# File 'lib/mongo/index.rb', line 40
Specify descending order for an index.
-1
-
GEO2D =
# File 'lib/mongo/index.rb', line 45
Specify a 2d Geo index.
'2d'.freeze
-
GEO2DSPHERE =
# File 'lib/mongo/index.rb', line 50
Specify a 2d sphere Geo index.
'2dsphere'.freeze
-
GEOHAYSTACK =
# File 'lib/mongo/index.rb', line 56Deprecated.
Specify a geoHaystack index.
'geoHaystack'.freeze
-
HASHED =
# File 'lib/mongo/index.rb', line 66
Specify a hashed index.
'hashed'.freeze
-
TEXT =
# File 'lib/mongo/index.rb', line 61
Encodes a text index.
'text'.freeze