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 =
Wildcard constant for all.
'*'.freeze
-
ASCENDING =
Specify ascending order for an index.
1
-
COLLECTION =
Constant for the indexes collection.
'system.indexes'.freeze
-
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
-
HASHED =
Specify a hashed index.
'hashed'.freeze
-
TEXT =
Encodes a text index.
'text'.freeze