object SearchIndexModel
A model describing the creation of a single Atlas Search index.
- Alphabetic
- By Inheritance
- SearchIndexModel
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply(indexName: Option[String], definition: Bson, indexType: Option[SearchIndexType]): SearchIndexModel
Construct an instance with the given search index name and definition.
Construct an instance with the given search index name and definition.
- indexName
the name of the search index to create.
- definition
the search index mapping definition.
- indexType
the search index type.
- returns
the SearchIndexModel
- def apply(indexName: String, definition: Bson): SearchIndexModel
Construct an instance with the given search index name and definition.
Construct an instance with the given search index name and definition.
- indexName
the name of the search index to create.
- definition
the search index mapping definition.
- returns
the SearchIndexModel
- def apply(definition: Bson): SearchIndexModel
Construct an instance with the given Atlas Search index mapping definition.
Construct an instance with the given Atlas Search index mapping definition.
After calling this constructor, the
name
field will benull
. In that case, when passing thisSearchIndexModel
to thecreateSearchIndexes
method, the default search index namedefault
will be used to create the search index.- definition
the search index mapping definition.
- returns
the SearchIndexModel
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: