Home > Software design >  Migrate data from azure mongodb to azure search
Migrate data from azure mongodb to azure search

Time:04-27

I'm using Microsodt azure cloud provider in my project,where i have a mongodb installed on a VM on azure and also I have azure cognitive search instance . what I want to do is to migrate the data which i have on mongodb to azure search in order to create indexes and then use the restful apis on the client application. my question is, is there a way to move data from mongodb to azure search please ?

CodePudding user response:

Unfortunately there is not a built in Mongo DB connector for Azure Search as of now. However you have two options.

Migrate from Mongodb to Azure Cosmos DB (Mongo API) and then create an Azure Search Indexer for the Azure Cosmos DB in question, see https://docs.microsoft.com/en-us/azure/dms/tutorial-mongodb-cosmos-db-online

Write a custom code application that pulls data from Mongo and then send it to Azure Search indexes, you can do this by using the push API, take a look at https://docs.microsoft.com/en-us/azure/search/tutorial-optimize-indexing-push-api

  • Related