-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.4.0-rc0
-
Component/s: None
-
None
-
ALL
I tried inserting the following document:
{
"_id" : ObjectId("510c1f0a9dcaa36340e0c983"),
"location" :
,
"friend_ids" : [
123,
456
]
}
Added the following index:
db.updates.ensureIndex(
)
But when I query for the following, nothing is returned:
db.updates.find({ friend_ids: 123, location: {$near:
}})
It works for non-array fields. Is this by design or a bug?