id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	planetversion	pltversion
307	Index for GeoSpatial Queries (fixed report)	tom.mcnulty@…	jaymccarthy	"My apologies, the last report was missing the first part.


When ""2d"" queries are made, queries will fail if the index does not have an object id. In all cases, it seems Indexes created with racket do not have an object id.

I noticed this by comparing an index created in the shell, to one created in racket. As expected, name: doesn't seem to be important.

(mongo-collection-index! event-col (hasheq 'location '2d))
=>
{
""name"" : ""#hasheq((location . 2d))"",
""ns"" : ""space.events"",
""key"" : {
""location"" : ""2d""
}
}

db.events.ensureIndex({""location"" : ""2d""}) 
=>
{
""_id"" : ObjectId?(""4cd4995e9edd9c1e41d8f4ba""),
""ns"" : ""space.events"",
""key"" : {
""location"" : ""2d""
},
""name"" : ""location_""
}"	defect	closed	major		jaymccarthy/mongodb.plt	invalid			(1 7)	5.0.2.1
