reactivemongo.api.indexes
Members list
Type members
Classlikes
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Factory for indexes manager scoped with a specified collection.
Factory for indexes manager scoped with a specified collection.
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
A MongoDB index (excluding the namespace).
A MongoDB index (excluding the namespace).
Consider reading the documentation about indexes in MongoDB.
import reactivemongo.api.bson.BSONDocument
import reactivemongo.api.indexes.{ Index, IndexType }
val bsonIndex = Index(
key = Seq("name" -> IndexType.Ascending),
name = Some("name_idx"),
unique = false,
background = false,
sparse = false,
expireAfterSeconds = None,
storageEngine = None,
weights = None,
defaultLanguage = None,
languageOverride = None,
textIndexVersion = None,
sphereIndexVersion = None,
bits = None,
min = None,
max = None,
bucketSize = None,
collation = None,
wildcardProjection = None,
version = None,
partialFilter = None,
options = BSONDocument.empty)
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Type of Index
Type of Index
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object Ascending.typeobject Descending.typeobject Geo2D.typeobject Geo2DSpherical.typeobject GeoHaystack.typeobject Hashed.typeobject Text.type
Indexes manager at database level.
Indexes manager at database level.
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- IndexesManager.type
A MongoDB namespaced index. A MongoDB index is composed with the namespace (the fully qualified collection name) and the other fields of reactivemongo.api.indexes.Index.
A MongoDB namespaced index. A MongoDB index is composed with the namespace (the fully qualified collection name) and the other fields of reactivemongo.api.indexes.Index.
Consider reading the documentation about indexes in MongoDB.
Attributes
- index
The other fields of the index.
- namespace
The fully qualified name of the indexed collection.
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any