-
Type: Task
-
Resolution: Won't Do
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Server
-
Labels:None
-
0.25
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 "*".
- is related to
-
JAVA-2757 MongoCollection.dropIndex(Bson keys) does not work for non-generated index names
- Closed