Options for creating a fulltext index.
An array containing exactly one attribute path.
If set to true
, the index will be created in the background to reduce
the write-lock duration for the collection during index creation.
Default: false
Minimum character length of words to index.
A unique name for this index.
Type of this index.
Options for creating a geo index.
(MMFiles only.) Options for creating a hash index.
When using the RocksDB storage engine, this index type behaves identically to EnsurePersistentIndexOptions.
If set to false
, array values will not be deduplicated.
Default: true
If set to false
, index selectivity estimates will be disabled for this
index.
Default: true
An array of attribute paths.
If set to true
, the index will be created in the background to reduce
the write-lock duration for the collection during index creation.
Default: false
A unique name for this index.
If set to true
, the index will omit documents that do not contain at
least one of the attribute paths in fields
and these documents will be
ignored for uniqueness checks.
Default: false
Type of this index.
If set to true
, a unique index will be created.
Default: false
Options for creating a persistent index.
If set to false
, index selectivity estimates will be disabled for this
index.
Default: true
An array of attribute paths.
If set to true
, the index will be created in the background to reduce
the write-lock duration for the collection during index creation.
Default: false
A unique name for this index.
If set to true
, the index will omit documents that do not contain at
least one of the attribute paths in fields
and these documents will be
ignored for uniqueness checks.
Default: false
Type of this index.
If set to true
, a unique index will be created.
Default: false
(MMFiles only.) Options for creating a skiplist index.
When using the RocksDB storage engine, this index type behaves identically to EnsurePersistentIndexOptions.
If set to false
, array values will not be deduplicated.
Default: true
If set to false
, index selectivity estimates will be disabled for this
index.
Default: true
An array of attribute paths.
If set to true
, the index will be created in the background to reduce
the write-lock duration for the collection during index creation.
Default: false
A unique name for this index.
If set to true
, the index will omit documents that do not contain at
least one of the attribute paths in fields
and these documents will be
ignored for uniqueness checks.
Default: false
Type of this index.
If set to true
, a unique index will be created.
Default: false
Options for creating a TTL index.
Duration in seconds after the attribute value at which the document will be considered as expired.
An array containing exactly one attribute path.
If set to true
, the index will be created in the background to reduce
the write-lock duration for the collection during index creation.
Default: false
A unique name for this index.
Type of this index.
Options for creating a ZKD index.
Data type of the dimension attributes.
An array containing attribute paths for the dimensions.
If set to true
, the index will be created in the background to reduce
the write-lock duration for the collection during index creation.
Default: false
A unique name for this index.
Type of this index.
An object representing a fulltext index.
Shared attributes of all index types.
A unique identifier for this index.
A unique name for this index.
Whether documents not containing at least one of the attribute paths are omitted by this index.
Whether this index enforces uniqueness for values of its attribute paths.
An object representing a geo index.
An object representing a hash index.
An object representing an index.
Index name, id or object with a name
or id
property.
An object representing a persistent index.
An object representing a primary index.
An object representing a skiplist index.
An object representing a TTL index.
An object representing a TTL index.
Generated using TypeDoc
The "indexes" module provides index-related types for TypeScript.