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

Similar issue - reproduced

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.3
    • Affects Version/s: 1.1.2
    • Component/s: Querying
    • None
    • Environment:
      Linux Ubuntu, Windows

      the issue comes after an index is created
      -----------------------------------------------------------------------

      from pymongo.connection import Connection
      from pymongo import ASCENDING

      connection = Connection()
      db = connection["test"]
      db.drop_collection("foo")
      collection = db.foo
      doc =

      {"name":["harry","jack","tom"]}

      #collection.ensure_index([("name",ASCENDING)])
      collection.insert(doc)
      cursor = collection.find()
      for d in cursor:
      print d
      c = collection.find({"name":{"$all":["harry","john"]}}).count()

      1. should be 0 :1 instead --> fails if index created (only the first item in list seems to be taken)
        print "0/"+str(c)

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            chrisb christophe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: