Index

reactivemongo.api.indexes.Index$
See theIndex companion class
object Index

Attributes

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

Members list

Concise view

Type members

Classlikes

object Key

'''EXPERIMENTAL:''' API may change

'''EXPERIMENTAL:''' API may change

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Key.type

Types

type Aux[P] = Index { type Pack = P; }
type Default = Aux[Pack]

Value members

Concrete methods

def apply[P <: SerializationPack](_pack: P)(key: Seq[(String, IndexType)], name: Option[String], unique: Boolean, background: Boolean, sparse: Boolean, expireAfterSeconds: Option[Int], storageEngine: Option[Document], weights: Option[Document], defaultLanguage: Option[String], languageOverride: Option[String], textIndexVersion: Option[Int], sphereIndexVersion: Option[Int], bits: Option[Int], min: Option[Double], max: Option[Double], bucketSize: Option[Double], collation: Option[Collation], wildcardProjection: Option[Document], version: Option[Int], partialFilter: Option[Document], options: Document): Aux[P]
import reactivemongo.api.bson.BSONDocument
import reactivemongo.api.bson.collection.BSONSerializationPack
import reactivemongo.api.indexes.{ Index, IndexType }

val bsonIndex = Index(BSONSerializationPack)(
 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

def apply(key: Seq[(String, IndexType)], name: Option[String], unique: Boolean, background: Boolean, sparse: Boolean, expireAfterSeconds: Option[Int], storageEngine: Option[Document], weights: Option[Document], defaultLanguage: Option[String], languageOverride: Option[String], textIndexVersion: Option[Int], sphereIndexVersion: Option[Int], bits: Option[Int], min: Option[Double], max: Option[Double], bucketSize: Option[Double], collation: Option[Collation], wildcardProjection: Option[Document], version: Option[Int], partialFilter: Option[Document], options: Document): Aux[Pack]
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