Azure cosmosdb Azure搜索和具有复杂结构的Cosmos DB
我在CosmosDB有这样的东西:Azure cosmosdb Azure搜索和具有复杂结构的Cosmos DB,azure-cosmosdb,azure-cognitive-search,Azure Cosmosdb,Azure Cognitive Search,我在CosmosDB有这样的东西: [ { "id": 1, "name": "Thomas", "countries": [ { "id": 2, "name": "Denmark" }, { "id": 1, "name": "Sweden" } ] }, { "id": 2, "name": "Alberto",
[
{
"id": 1,
"name": "Thomas",
"countries": [
{
"id": 2,
"name": "Denmark"
},
{
"id": 1,
"name": "Sweden"
}
]
},
{
"id": 2,
"name": "Alberto",
"countries": [
{
"id": 2,
"name": "Spain"
}
]
}
]
我可以看到Azure search有一个集合类型,但不适用于复杂的结构。因此,我必须将国家划分为两个不同的列og类型集合。如果我错了,请纠正我。我还可以看到从Azure Search到Cosmos DB有一个连接器。该连接器是否适用于上述场景,或者您是否必须构建自己的索引器?它支持复杂类型吗?Azure Search中的复杂类型支持现在普遍可用,包括Cosmos DB indexer支持。您应该能够使用Azure门户中的导入数据功能进行尝试。Azure Search中的复杂类型支持现在普遍可用,包括Cosmos DB indexer支持。您应该能够使用Azure门户中的导入数据功能进行尝试