将 Azure 认知搜索连接到 MongoDB Cloud Atlas

Connect Azure Cognitive Search to MongoDB Cloud Atlas

我有一个 Web 应用程序(ASP.NET,C#)在 MongoDB Cloud Atlas 上有一个数据库。

我想试用搜索服务 Azure 认知搜索。

是否知道是否可以将 MongoDB Cloud Atlas 连接到 Azure 认知搜索?

我找到了 Copy data from MongoDB to Azure using Azure Data Factory 的选项,但我想防止在 2 个不同的地方存储数据。 (MongoDB 集群和 Azure blob 存储)。

如果您询问的是 MongoDB 连接器,则它不可用。您应该编写逻辑以从 Mongo DB Atlas 中提取数据并将其发送到 Azure 认知搜索服务。

以上回答确实正确。如果您想利用我们现有的一些连接器,这里还有另一种选择。

Azure CosmosDB 提供了由 CosmosDb 提供的 migration tool that will allow you to import data from a MongoDB into a CosmosDB collection of your choice. This data is accessible via the MongoDB API(这意味着从理论上讲,您拥有的任何其他需要访问此数据的应用程序都可以重新设计以以最小的开销访问 CosmosDB)。

如果这是一个可行的选择,Azure 认知搜索索引器随后可以通过 MongoDB API - 文档 here

连接到 Azure CosmosDB

此功能目前处于封闭预览阶段,如果您对此感兴趣,我们强烈建议您在此处注册:https://aka.ms/azure-cognitive-search/indexer-preview

我知道此解决方案还需要您将数据从 Atlas 移植到 Azure,但如果开销不大,请尝试一下。 (这将节省您通过推送 API 从 MongoDB 手动提取数据到搜索索引的时间)