Optional2dsphereOptionalbitsOptionally specifies the precision of the stored geo hash in the 2d index, from 1 to 32.
OptionalbucketOptionally specifies the number of units within which to group the location values in a geo haystack index.
OptionalcollationOptionally specifies a collation to use for the index. If not specified, no collation is sent and the default collation of the collection server-side is used.
OptionaldefaultOptionally specifies the default language for text indexes. Is 'english' if none is provided.
OptionalexpireOptionally specifies the length in time, in seconds, for documents to remain in a collection.
OptionalhiddenOptionally specifies that the index should exist on the target collection but should not be used by the query planner when executing operations.
This option is only supported by servers >= 4.4.
OptionallanguageOptionally Specifies the field in the document to override the language.
OptionalmaxOptionally sets the maximum boundary for latitude and longitude in the 2d index.
OptionalminOptionally sets the minimum boundary for latitude and longitude in the index in a 2d index.
OptionalnameOptionally specify a specific name for the index outside of the default generated name. If none is provided then the name is generated in the format "[field]_[direction]".
Note that if an index is created for the same key pattern with different collations, a name must be provided by the user to avoid ambiguity.
OptionalpartialOptionally specifies a filter for use in a partial index. Only documents that match the filter expression are included in the index.
OptionalsparseOptionally tells the index to only reference documents with the specified field in the index.
OptionalstorageOptionally allows users to configure the storage engine on a per-index basis when creating an index.
OptionaltextOptionally provides the text index version number.
OptionaluniqueOptionally forces the index to be unique.
OptionalversionOptionally specifies the index version number, either 0 or 1.
OptionalweightsOptionally specifies fields in the index and their corresponding weight values.
OptionalwildcardOptionally specifies the wildcard projection of a wildcard index.
Optionally specifies the 2dsphere index version number.