可选2dsphere可选background可选bits可选bucket可选collation可选default_可选expireAllows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)
可选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)
可选language_可选maxFor geospatial indexes set the high bound for the co-ordinates.
可选minFor geospatial indexes set the lower bound for the co-ordinates.
可选name可选partialCreates a partial index based on the given filter object (MongoDB 3.2 or higher)
可选sparseCreates a sparse index.
可选storageAllows users to configure the storage engine on a per-index basis when creating an index. (MongoDB 3.0 or higher)
可选text可选uniqueCreates an unique index.
可选versionSpecifies the index version number, either 0 or 1.
可选weights可选wildcard
Creates the index in the background, yielding whenever possible.