Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25485

explain shows incorrect parsed syntax for $elemMatch filter

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

      (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@mongodb.com David Storch
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: