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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • ALL

    Description

      > 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: