| Module | Mongo::Index |
| In: |
lib/mongo/index/view.rb
lib/mongo/index.rb |
Contains constants for indexing purposes.
@since 2.0.0
| ALL | = | '*'.freeze |
Wildcard constant for all.
@since 2.1.0 |
|
| ASCENDING | = | 1 |
Specify ascending order for an index.
@since 2.0.0 |
|
| DESCENDING | = | -1 |
Specify descending order for an index.
@since 2.0.0 |
|
| GEO2D | = | '2d'.freeze |
Specify a 2d Geo index.
@since 2.0.0 |
|
| GEO2DSPHERE | = | '2dsphere'.freeze |
Specify a 2d sphere Geo index.
@since 2.0.0 |
|
| GEOHAYSTACK | = | 'geoHaystack'.freeze |
Specify a geoHaystack index.
@since 2.0.0 |
|
| TEXT | = | 'text'.freeze |
Encodes a text index.
@since 2.0.0 |
|
| HASHED | = | 'hashed'.freeze |
Specify a hashed index.
@since 2.0.0 |
|
| COLLECTION | = | 'system.indexes'.freeze |
Constant for the indexes collection.
@since 2.0.0 |