[SERVER-12942] Multiple geoSpatial indexes in a collection Created: 27/Feb/14 Updated: 10/Dec/14 Resolved: 27/Feb/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.6.0-rc0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rajesh Khot | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | 2dsphere,, geospatial | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | db.testgeo.insert({name: "New York, NY", loc : { type:"Point", coordinates:[-74.005973,40.714353]}}) ) ) ) db.runCommand({geoNear: "testgeo",near : {$geometry: {type : "Point" ,coordinates :[-74.005973,40.714353]}}}) |
||||||||
| Participants: | |||||||||
| Description |
|
The documentation at http://docs.mongodb.org/master/core/2dsphere/ states that you can have only one geospatial index per collection. However we can create multiple geospatial indexes find with $near works geoNear and $geoNear do not work " |
| Comments |
| Comment by Daniel Pasette (Inactive) [ 27/Feb/14 ] |
|
Thanks for the report. It is a dupe of |