MongoDB queries don’t always return all matching documents!
David Glasser

Here is how you can easily reproduce the issue on MongoDB. I used about 300K document to force the issue to reproduce quite consistently.

This article also contains the comparison of the same test on Couchbase and I work for Couchbase.