[SERVER-22861] 2dsphere index cannot be created with lowercase "point" Created: 25/Feb/16  Updated: 05/Mar/16  Resolved: 05/Mar/16

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: 3.3.0, 3.3.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: nikos efthias [X] Assignee: Kelsey Schubert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot from 2016-02-25 22-10-55.png     PNG File Screenshot from 2016-02-25 22-11-59.png     PNG File Screenshot from 2016-02-25 22-13-57.png    
Operating System: ALL
Steps To Reproduce:

//step1
db.myCollection.insert({
//some details...
loc:{
type:"point",
coordinates:[0,0]}
})
//step2
db.myCollection.createIndex({loc:"2dsphere"})
//{
    "ok" : 0,
    "errmsg" : "Can't extract geo keys: { _id: \"0018m1tvHg\", loc: { type: \"point\", coordinates: [ 0.0, 0.0 ] } }  unknown GeoJSON type: { type: \"point\", coordinates: [ 0.0, 0.0 ] }",
    "code" : 16755
}

Participants:

 Description   

the geolocation data is exactly as in the examples on mongo documents but database cannot create index on that



 Comments   
Comment by Ramon Fernandez Marina [ 05/Mar/16 ]

nikosEfthias, these and other names are case-sensitive, as indicated by the documentation, so I'm closing this ticket.

Regards,
Ramón.

Comment by nikos efthias [X] [ 26/Feb/16 ]

this bug happens when type:"point" starts with a small p if to capitalize P it works . but i think this is still a bug i spent so long time untill finding the issue was that simple

Generated at Thu Feb 08 04:01:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.