Details
-
Improvement
-
Resolution: Won't Do
-
Major - P3
-
None
-
None
-
0.25
Description
This works back to 2.6:
MongoDB Enterprise > db.runCommand({createIndexes : "java2757", indexes : [{key : {score : 1}, name : "myScoreIdx" }] })
|
{
|
"createdCollectionAutomatically" : true,
|
"numIndexesBefore" : 1,
|
"numIndexesAfter" : 2,
|
"ok" : 1
|
}
|
MongoDB Enterprise > db.runCommand({dropIndexes: "java2757", index : {score : 1}} )
|
{ "nIndexesWas" : 2, "ok" : 1 }
|
It's not clear from the documentation that index can be anything other than the index name or "*".
Attachments
Issue Links
- is related to
-
JAVA-2757 MongoCollection.dropIndex(Bson keys) does not work for non-generated index names
-
- Closed
-