I am using seperate indexes for an array field of the documents. While querying the documents elemMatch operator is being used. But when i try running the explain command it shows me that the index is not used.
I get the following result for explain query :
"queryPlanner" : {
"plannerVersion" : 1,
"namespace" : "mydb.mycollection",
"winningPlan" : {
"stage" : "COLLSCAN"
}
},
"serverInfo" : {
"host" : "xxxxxx",
"port" : xxxxx,
"version" : "3.6.0"
},
"ok" : 1.0
}
that means that it is not using the index i created for this collection.
Does aws document not use array indexes in elemMatch operator. ?