在将数据从mongodb迁移到documentdb时,我得到了这个错误。索引是在documentdb端创建的,没有问题。26T17:40:22.057+0000 error: multiple fields of compound index cannot be arrays
我看到关于mongodb的类似问题,documentdb我在documentdb中创建索引时没有看到任何问题,只在还原期间在还原中看到它。
我试图向Azure DocumentDB集合中的特定属性添加范围索引,如文章所述。当执行创建集合的代码时,我会得到以下错误:
var collection = new DocumentCollection { id = "myCollectionID" };
collection.IndexingPolicy.IncludedPaths.Add_