Example usage for Java com.mongodb.client.model IndexOptions fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | background |
boolean | unique |
String | name |
boolean | sparse |
Integer | version |
Bson | weights |
String | defaultLanguage |
String | languageOverride |
Integer | textVersion |
Integer | sphereVersion |
Integer | bits |
Double | min |
Double | max |
Double | bucketSize |
Bson | storageEngine |
Bson | partialFilterExpression |
Collation | collation |
IndexOptions | expireAfter(@Nullable final Long expireAfter, final TimeUnit timeUnit) Sets the time to live for documents in the collection |
Integer | getBits() Gets the number of precision of the stored geohash value of the location data in 2d indexes. |
Double | getBucketSize() Gets the specified the number of units within which to group the location values for geoHaystack Indexes |
Collation | getCollation() Returns the collation options |
String | getDefaultLanguage() Gets the language for a text index. |
Long | getExpireAfter(final TimeUnit timeUnit) Gets the time to live for documents in the collection |
String | getLanguageOverride() Gets the name of the field that contains the language string. |
Double | getMax() Gets the upper inclusive boundary for the longitude and latitude values for 2d indexes.. |
Double | getMin() Gets the lower inclusive boundary for the longitude and latitude values for 2d indexes.. |
String | getName() Gets the name of the index. |
Bson | getPartialFilterExpression() Get the filter expression for the documents to be included in the index or null if not set |
Integer | getSphereVersion() Gets the 2dsphere index version number. |
Bson | getStorageEngine() Gets the storage engine options document for this index. |
Integer | getTextVersion() The text index version number. |
Integer | getVersion() Gets the index version number. |
Bson | getWeights() Gets the weighting object for use with a text index A document that represents field and weight pairs. |
boolean | isBackground() Create the index in the background |
boolean | isSparse() If true, the index only references documents with the specified field |
boolean | isUnique() Gets if the index should be unique. |