Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11278

Outdated documentation for createIndex() 2dsphereIndexVersion option

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 51 weeks, 6 days ago