Reputation: 23
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).
Upvotes: 2
Views: 1050
Reputation: 569
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 the MongoDB 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)
Upvotes: 0
Reputation: 18387
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.
Upvotes: 1