[SERVER-2391] Cannot use compound of 2d and date value index Created: 21/Jan/11 Updated: 24/Jan/11 Resolved: 24/Jan/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | 1.7.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alvin Richards (Inactive) | Assignee: | Greg Studer |
| Resolution: | Duplicate | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Problem: Reproduce: > db.testcol.find() , "occurences" : [ , { "instanceId" : 2, "startDate" : ISODate("2011-01-30T03:00:00Z") }] } , "occurences" : [ , { "instanceId" : 2, "startDate" : ISODate("2011-01-25T03:00:00Z") }] } This works > db.testcol.find({ "loc": { "$within": } , "occurences" : [ , { "instanceId" : 2, "startDate" : ISODate("2011-01-30T03:00:00Z") }] } , "occurences" : [ , { "instanceId" : 2, "startDate" : ISODate("2011-01-25T03:00:00Z") }] } However, restricting by occurences.startDate returns no documents > db.testcol.find({ "loc": { "$within": }, |
| Comments |
| Comment by Greg Studer [ 24/Jan/11 ] |
|
Also geoindex and multi-key issue. |
| Comment by Greg Studer [ 24/Jan/11 ] |
|
Same issue as http://jira.mongodb.org/browse/SERVER-2381, not date-related. Should be fixed by the same improvement. |