[SERVER-413] Queries with $exists operator on indexed key return on results Created: 11/Nov/09 Updated: 12/Jul/16 Resolved: 11/Nov/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 1.0.0, 1.0.1 |
| Fix Version/s: | 1.1.4 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Emily Price | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mac OS X 10.5.8 on MacBook Pro |
||
| Attachments: |
|
| Participants: |
| Description |
|
It seems that the $exists operator does not work on keys which have been indexed. If a key has an index, the $exists operator will never return any documents. I've attached some tests in ruby which demonstrate this, along with their output, and an example mongo console session showing that it's not just an issue with the ruby driver. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 11/Nov/09 ] |
|
this has already been fixed in 1.1.x |
| Comment by auto [ 11/Nov/09 ] |
|
Author: {'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: tests to verify |