Optional
2dsphereOptional
backgroundOptional
bitsOptional
bucketOptional
collationOptional
default_Optional
expireAllows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)允许您使应用于数据的索引上的数据过期(MongoDB 2.2或更高版本)
Optional
hiddenSpecifies that the index should exist on the target collection but should not be used by the query planner when executing operations. 指定索引应存在于目标集合上,但查询计划器在执行操作时不应使用该索引。(MongoDB 4.4 or higher)
Optional
language_Optional
maxFor geospatial indexes set the high bound for the co-ordinates.对于地理空间索引,设置坐标的上限。
Optional
minFor geospatial indexes set the lower bound for the co-ordinates.对于地理空间索引,设置坐标的下限。
Optional
nameOptional
partialCreates a partial index based on the given filter object (MongoDB 3.2 or higher)基于给定的筛选器对象创建部分索引(MongoDB 3.2或更高版本)
Optional
sparseCreates a sparse index.创建稀疏索引。
Optional
storageAllows users to configure the storage engine on a per-index basis when creating an index. (MongoDB 3.0 or higher)允许用户在创建索引时按每个索引配置存储引擎。(MongoDB 3.0或更高版本)
Optional
textOptional
uniqueCreates an unique index.创建唯一索引。
Optional
versionSpecifies the index version number, either 0 or 1.指定索引版本号,0或1。
Optional
weightsOptional
wildcardGenerated using TypeDoc
Creates the index in the background, yielding whenever possible.在后台创建索引,尽可能生成索引。