【问题标题】:Azure Search and Cosmos DB with complex structures具有复杂结构的 Azure 搜索和 Cosmos DB
【发布时间】:2019-05-11 10:15:50
【问题描述】:

我在 CosmosDB 中有这样的东西:

[
  {
    "id": 1,
    "name": "Thomas",
    "countries": [
      {
        "id": 2,
        "name": "Denmark"
      },
      {
        "id": 1,
        "name": "Sweden"
      }
    ]
  },
  {
    "id": 2,
    "name": "Alberto",
    "countries": [
      {
        "id": 2,
        "name": "Spain"
      }
    ]
  }
]

我可以看到 Azure 搜索具有集合类型,但不适用于复杂结构。因此,我必须将国家/地区扁平化为两个不同的列 og 类型集合。如果我在这里错了,请纠正我。我还可以看到从 Azure 搜索到 Cosmos DB 的连接器。此连接器是否适用于上述场景,还是您必须构建自己的索引器?它是否支持复杂类型?

【问题讨论】:

    标签: azure-cosmosdb azure-cognitive-search


    【解决方案1】:

    Azure 搜索中的复杂类型支持现已全面推出,包括 Cosmos DB 索引器支持。您应该可以使用 Azure 门户中的导入数据功能进行尝试。

    【讨论】:

      猜你喜欢
      • 2022-01-19
      • 2020-04-25
      • 2017-12-05
      • 2020-01-18
      • 1970-01-01
      • 2022-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多