Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12226

Cannot create compound index with text and descending

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc0
    • Affects Version/s: 2.5.4
    • Component/s: Text Search
    • Labels:
    • Environment:
      mongodb nightly from 12/30 on Windows 7 x64
    • ALL

      Compound index with text and ascending succeed whereas descending fails.
      db.coll1.ensureIndex(

      {f1:"text",f2:1}

      ) succeeds

      > db.coll2.ensureIndex(

      {f1:"text",f2:-1}

      )
      {
      "err" : "compound text index key suffix fields must have value 1",
      "code" : 17290,
      "n" : 0,
      "connectionId" : 3,
      "ok" : 1
      }

            Assignee:
            rassi J Rassi
            Reporter:
            sridhar Sridhar Nanjundeswaran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: