[SERVER-3722] Compound index using array indexes doesn't return query results Created: 30/Aug/11 Updated: 29/Feb/12 Resolved: 30/Aug/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kyle Banker | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
This is definitely an edge case, but probably should work (referenced here: http://groups.google.com/group/mongodb-user/browse_thread/thread/32511a51caad9085). Here's how to reproduce: > db.a.save({a: {spec: [{ info: [ {key: "author", value: "poe"}]} ]}}) ] } ] } } > db.a.find( {"a.spec.0.info.0.key": "author", "a.spec.0.info.0.value": "poe"}) ] } ] } } So far so good. Now add an index: ) > db.a.find( {"a.spec.0.info.0.key": "author", "a.spec.0.info.0.value": "poe"}) |
| Comments |
| Comment by Aaron Staple [ 30/Aug/11 ] |
|
This was implemented in 1.9 with |