To reproduce:
./mongo
> pipeline = [\{ $match: { 'a': { $elemMatch: {$ne:400 }} }} ]
> db.hello.explain().aggregate(pipeline)
Result looks like:
{ "stages" : [ { "$cursor" : { "query" : { "a" : { "$elemMatch" : { "$ne" : 400 } } }, "queryPlanner" : { "plannerVersion" : 1, "namespace" : "test.hello", "indexFilterSet" : false, "parsedQuery" : { "a" : { "$elemMatch" : { "0" : { "" : { "$eq" : 400 } } } } }, "winningPlan" : { "stage" : "EOF" }, "rejectedPlans" : [ ] } } } ], "ok" : 1 }
Note that parsedQuery does not make sense. Namely, it has a key value which is an empty string.
- depends on
-
SERVER-13779 Allow $not to be applied to $regex (currently only /regex/ syntax is allowed)
- Closed
- is depended on by
-
SERVER-38544 Serialize optimized $match stage instead of original BSON
- Closed
- is related to
-
SERVER-1454 Use $not as a top-level logical op
- Backlog