gpt4 book ai didi

mongodb - Azure Cosmos DB Mongodb $t 和 $v

转载 作者:IT老高 更新时间:2023-10-28 13:29:26 30 4
gpt4 key购买 nike

我有 2 个在 MongoDb 中运行的 Azure Cosmos DB。第一个是别人创建的,第二个是我创建的。

如果我查询数据库,我的结构会因 $t 和 $v 属性而变得非常奇怪。

我的结构:

enter image description here

另一个数据库的结构(应该是这样): enter image description here

我的后端确实可以与两者正常工作,但我想添加 Azure 搜索,但无法使用我的结构执行此操作。为什么会发生这种情况以及如何解决它?

最佳答案

(如果有人可以将此作为评论而不是答案,我们将不胜感激)

我也得到了同样的结果。看来微软在这里给出了为什么会发生这种情况的答案:http://answers.flyppdevportal.com/MVC/Post/Thread/e0ffdbcd-0b43-4cd5-9d21-1a95ce0279dd?category=azuredocumentdb

The incorrect format is a result of intermixing the Cosmos DB: MongoDB API with the Cosmos DB: DocumentDB API.

我不太清楚为什么这两者混合在一起,因为 MongoDb 维护着 MongoDB API NuGet。

关于mongodb - Azure Cosmos DB Mongodb $t 和 $v,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45815507/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com