explain shows incorrect parsed syntax for $elemMatch filter

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.2.8
    • Component/s: Querying
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      (3.2.8) > db.survey.explain().find( { item: { $elemMatch: { $gte: 3, $lte: 6 } } } )
      {
      	"queryPlanner" : {
      		"plannerVersion" : 1,
      		"namespace" : "test.survey",
      		"indexFilterSet" : false,
      		"parsedQuery" : {
      			"item" : {
      				"$elemMatch" : {
      					"" : {
      						"$lte" : 6
      					}
      				}
      			}
      		},
      		"winningPlan" : {
      			"stage" : "FETCH",
      			"filter" : {
      				"item" : {
      					"$elemMatch" : {
      						"" : {
      							"$lte" : 6
      						}
      					}
      				}
      			},
      ...
      

            Assignee:
            David Storch
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: