简体   繁体   English

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

[英]Connect Azure Cognitive Search to MongoDB Cloud Atlas

I have a web application (ASP.NET, C#) with a database on MongoDB Cloud Atlas.我在 MongoDB Cloud Atlas 上有一个带有数据库的 Web 应用程序(ASP.NET、C#)。

I would like to experiment with the search service Azure Cognitive Search.我想试用搜索服务 Azure 认知搜索。

Does know if it is possible to connect the MongoDB Cloud Atlas to Azure Cognitive Search?不知道是否可以将 MongoDB Cloud Atlas 连接到 Azure 认知搜索?

I have found an option to Copy data from MongoDB to Azure using Azure Data Factory but I would like to prevent storing data in 2 different places.我找到了使用 Azure 数据工厂将数据从 MongoDB 复制到 Azure的选项,但我想防止将数据存储在 2 个不同的地方。 (MongoDB cluster and Azure blob storage). (MongoDB 集群和 Azure blob 存储)。

If you are asking about a MongoDB Connector, then it's not available.如果您询问 MongoDB 连接器,则它不可用。 You should code the logic to extract data from Mongo DB Atlas and send it to Azure Cognitive Search Service.您应该编写逻辑以从 Mongo DB Atlas 中提取数据并将其发送到 Azure 认知搜索服务。

The above answer is indeed correct.上面的答案确实是正确的。 Here's one more option if you want to leverage some of the connectors we do have.如果您想利用我们拥有的一些连接器,这里还有一个选项。

Azure CosmosDB offers a migration tool that will allow you to import data from a MongoDB into a CosmosDB collection of your choice. Azure CosmosDB 提供了一个迁移工具,允许你将数据从 MongoDB 导入到你选择的 CosmosDB 集合中。 This data is accessible via theMongoDB API offered by CosmosDb (which means in theory any other application you own that needs to access this data can be reworked to reach into CosmosDB with minimal overhead).这些数据可以通过 CosmosDb 提供的MongoDB API访问(理论上,这意味着您拥有的任何其他需要访问这些数据的应用程序都可以重新加工,以最小的开销访问 CosmosDB)。

If this is a feasible option, Azure Cognitive search indexers can then connect to the Azure CosmosDB via the MongoDB API - documentation here如果这是一个可行的选择,Azure 认知搜索索引器然后可以通过 MongoDB API 连接到 Azure CosmosDB - 文档在这里

This is a feature currently in gated preview, and if this interests you we highly recommend you sign up here: https://aka.ms/azure-cognitive-search/indexer-preview .这是目前处于封闭预览中的功能,如果您对此感兴趣,我们强烈建议您在此处注册: https : //aka.ms/azure-cognitive-search/indexer-preview

I know this solution also needs you to port over your data from Atlas into Azure, but do give it a try if it's not too much overhead.我知道此解决方案还需要您将数据从 Atlas 移植到 Azure,但如果开销不是太大,请尝试一下。 (and this will save you time to manually extract data from MongoDB into your search index via the push API) (这将节省您通过推送 API 从 MongoDB 手动提取数据到您的搜索索引中的时间)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM