-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
ALL
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 } ) >
- related to
-
SERVER-12024 re-implement $in in terms of $or
- Backlog