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

Text queries on capped collection incorrectly return non-matching results if tailable cursor requested

    • Minor Change
    • ALL
    • Query F (02/01/16), Query 10 (02/22/16), Query 11 (03/14/16)

      > db.foo.drop()
      true
      > db.createCollection("foo",{capped:true,size:1024*1024})
      { "ok" : 1 }
      > db.foo.ensureIndex({a:"text"})
      > db.foo.insert({a:"world"})
      > db.foo.find({$text:{$search:"hello"}}) // correct, returns no results
      > db.foo.find({$text:{$search:"hello"}}).addOption(2) // incorrect, returns non-matching results
      { "_id" : ObjectId("544007b9eec1b9328f503e65"), "a" : "world" }
      

            Assignee:
            paul.pedersen Paul Pedersen
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: