Cannot create index in Azure DocumentDb with Mongodb protocol
问题 Now I know that the Unique Index is not supported in DocumentDb, but why I cannot create a normal index using createIndex()? In mongo shell: > db.product.createIndex({itemId:1}) { "_t" : "OKMongoResponse", "ok" : 1 } but the collection seems unchange: > db.product.getIndexes() [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_1", "ns" : "admin.product" } ] I also find Mongodb API Compatibility slide here. It told us that we can use createIndex function in mongodb to create non-unique index.