[DOCS-11278] Outdated documentation for createIndex() 2dsphereIndexVersion option Created: 02/Feb/18  Updated: 29/Oct/23  Resolved: 15/Feb/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 5 years, 51 weeks, 6 days ago

 Description   

db.collection.createIndex() says the following for 2dsphereIndexVersion:

For 2dsphere indexes, the 2dsphere index version number. Version can be either 1 or 2.

In MongoDB 2.6, the default version is 2. MongoDB 2.4 only supports version 1.

New in version 2.6.

MongoDB 3.2 introduced version 3 (see: here), which makes this description quite out of date. I'd suggest rephrasing this to say the option may be used to override the server's default version and perhaps cross-reference the 2dsphere docs.



 Comments   
Comment by Kay Kim (Inactive) [ 15/Feb/18 ]

updated for text index version as well.

Comment by Githook User [ 15/Feb/18 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'kay', 'username': 'kay-kim'}

Message: DOCS-11278: update 2dsphere index and text index version options in createIndex/es
Branch: v3.2
https://github.com/mongodb/docs/commit/6117aaeb4c12f47843ac44c548759ea286f455f9

Comment by Githook User [ 15/Feb/18 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'kay', 'username': 'kay-kim'}

Message: DOCS-11278: update 2dsphere index and text index version options in createIndex/es
Branch: v3.4
https://github.com/mongodb/docs/commit/244c45d0b29812db65d3867c5874b948e7e238fe

Comment by Githook User [ 15/Feb/18 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'kay', 'username': 'kay-kim'}

Message: DOCS-11278: update 2dsphere index and text index version options in createIndex/es
Branch: master
https://github.com/mongodb/docs/commit/140b5c7f94922b6608590a51856e69a16f990bb2

Generated at Thu Feb 08 08:02:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.