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

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

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

      > 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 Unassigned
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: