Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
-
ALL
Description
Key matching is not implemented properly for $elemMatch. For now we should disable key matching with $elemMatch.
Test:
> c.drop()
|
false
|
> c.ensureIndex( { a:1 } )
|
c>c.save( { a:[ { b:1 } ] } )
|
> c.find( { a:{ $elemMatch:{ b:{ $gte:1 } } } } ).hint( { $natural:1 } )
|
{ "_id" : ObjectId("4fcd1f7c52eebdbb9f04430d"), "a" : [ { "b" : 1 } ] }
|
> c.find( { a:{ $elemMatch:{ b:{ $gte:1 } } } } ).hint( { a:1 } )
|
>
|
Attachments
Issue Links
- related to
-
SERVER-12024 re-implement $in in terms of $or
-
- Backlog
-