type bracketing used for $not query indexing, but not matching

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > c.find( {a:{$not:{$gt:19}}} ).hint( {$natural:1} )

      { "_id" : ObjectId("4e48cb782bd12c45a5d7f15b"), "a" : 4 } { "_id" : ObjectId("4e48cb7c2bd12c45a5d7f15c") }

      > c.find( {a:{$not:{$gt:19}}} ).hint(

      {a:1}

      )

      { "_id" : ObjectId("4e48cb782bd12c45a5d7f15b"), "a" : 4 }

      >

      Just a note, I think defining the behavior of $not is part of SERVER-1937

              Assignee:
              Unassigned
              Reporter:
              Aaron Staple (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: