-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.6.5, 1.7.4
-
Component/s: Geo, Index Maintenance
-
None
-
Environment:Debian Linux, x64
2 examples with unexpected results:
db.test.insert({
point:[1,10],
tags:[
,
{k:'key2',v:123} ]
})
db.test.insert({
point:[1,10],
tags:
})
db.test.ensureIndex(
{point:"2d","tags.k":1,"tags.v":1})
db.test.find({
point:{"$within":{"$box":[[0,0],[12,12]]}},
"tags.k":"key"
})
Only 1 result:
{ "_id" : ObjectId("4d373f753ffe71e78a71bfc0"), "point" : [ 1, 10 ],
"tags" :
}
2)
db.test.drop()
db.test.insert({p:[1112,3473],t:[
,
{k:'c',v:'d'}]})
db.test.ensureIndex(
,
{min:0,max:10000})
db.test.find(
)
No result.
Some discussion here: http://groups.google.com/group/mongodb-user/browse_thread/thread/8fa375ba78081b2c/fd9967f89ff758da
- is related to
-
SERVER-2391 Cannot use compound of 2d and date value index
- Closed