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

Documentation for index type/plugin kerfuffle.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • mongodb-2.4
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      Need to explain error messages that can occur when upgrading to 2.4 with invalid index types. See: SERVER-8751, et al.

      • Indexes with invalid types created <2.4 will warn on startup (including {foo:"1"}

        instead of

        {foo:1}

        and

        {foo:"text"}

        ).

      • When creating indexes of type "text" or "2dsphere" in 2.4, mongodb checks that there are no other indexes with types that were not valid in 2.2, including {foo:"1"}

        . In order to create new index type, user will have to drop offending indexes.

      • Going forward, indexes of invalid types will not be allowed to be created.
      • If you have invalid indexes and you try to reIndex(), it will drop all indexes and fail upon discovery of first invalid index.
      • Invalid indexes are treated as ascending eg., {foo:"-1"}

        will be treated like,

        {foo:1}

        . This behavior is meant as a bridge for users who accidentally created indexes with invalid types, but is not guaranteed to be true forever.

      Need to create two new dochub entries:

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 14 weeks, 5 days ago