reactivemongo.api.indexes

Members list

Concise view

Type members

Classlikes

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class 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 Object
trait Matchable
class Any
Self type
sealed abstract class Index

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 Object
trait Matchable
class Any
object Index

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Index.type
sealed trait IndexType

Type of Index

Type of Index

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Ascending.type
object Descending.type
object Geo2D.type
object Geo2DSpherical.type
object GeoHaystack.type
object Hashed.type
object Text.type
object IndexType

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait IndexesManager

Indexes manager at database level.

Indexes manager at database level.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait NSIndex

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 Object
trait Matchable
class Any
object NSIndex

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
NSIndex.type