简体   繁体   中英

Connect Azure Cognitive Search to MongoDB Cloud Atlas

I have a web application (ASP.NET, C#) with a database on MongoDB Cloud Atlas.

I would like to experiment with the search service Azure Cognitive Search.

Does know if it is possible to connect the MongoDB Cloud Atlas to Azure Cognitive Search?

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. (MongoDB cluster and Azure blob storage).

If you are asking about a MongoDB Connector, then it's not available. You should code the logic to extract data from Mongo DB Atlas and send it to Azure Cognitive Search Service.

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. 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).

If this is a feasible option, Azure Cognitive search indexers can then connect to the Azure CosmosDB via the MongoDB API - documentation here

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 .

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. (and this will save you time to manually extract data from MongoDB into your search index via the push API)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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