Modifier and Type | Method and Description |
---|---|
IndexOptions |
IndexOptions.background(boolean background)
Should the index should be created in the background
|
IndexOptions |
IndexOptions.bits(Integer bits)
Sets the number of precision of the stored geohash value of the location data in 2d indexes.
|
IndexOptions |
IndexOptions.bucketSize(Double bucketSize)
Sets the specified the number of units within which to group the location values for geoHaystack Indexes
|
IndexOptions |
IndexOptions.defaultLanguage(String defaultLanguage)
Sets the language for the text index.
|
IndexOptions |
IndexOptions.expireAfter(Long expireAfter,
TimeUnit timeUnit)
Sets the time to live for documents in the collection
|
IndexOptions |
IndexOptions.languageOverride(String languageOverride)
Sets the name of the field that contains the language string.
|
IndexOptions |
IndexOptions.max(Double max)
Sets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
|
IndexOptions |
IndexOptions.min(Double min)
Sets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
|
IndexOptions |
IndexOptions.name(String name)
Sets the name of the index.
|
IndexOptions |
IndexOptions.partialFilterExpression(io.vertx.core.json.JsonObject partialFilterExpression)
Sets the filter expression for the documents to be included in the index
|
IndexOptions |
IndexOptions.sparse(boolean sparse)
Should the index only references documents with the specified field
|
IndexOptions |
IndexOptions.sphereVersion(Integer sphereVersion)
Sets the 2dsphere index version number.
|
IndexOptions |
IndexOptions.storageEngine(io.vertx.core.json.JsonObject storageEngine)
Sets the storage engine options document for this index.
|
IndexOptions |
IndexOptions.textVersion(Integer textVersion)
Set the text index version number.
|
IndexOptions |
IndexOptions.unique(boolean unique)
Should the index should be unique.
|
IndexOptions |
IndexOptions.version(Integer version)
Sets the index version number.
|
IndexOptions |
IndexOptions.weights(io.vertx.core.json.JsonObject weights)
Sets the weighting object for use with a text index.
|
Modifier and Type | Method and Description |
---|---|
MongoClient |
MongoClient.createIndexWithOptions(String collection,
io.vertx.core.json.JsonObject key,
IndexOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Creates an index.
|
Constructor and Description |
---|
IndexOptions(IndexOptions options)
Copy constructor
|
Copyright © 2021 Eclipse. All rights reserved.