Hi Lawgic Lawgic,
Using REST API method, we can send a GET request to the source service’s endpoint (e.g., GET https://[source-search-service].search.windows.net/indexes/[indexName]?api-version=2020-06-30), which returns a JSON representation of the index. Please cross check the API version through Document.
Once you have the JSON definition, we can recreate the index in your target service. You will deploy the same JSON schema by sending a POST request to the target service’s endpoint (e.g., POST https://[target-search-service].search.windows.net/indexes?api-version=2020-06-30).Please cross check the API version. It is important to review and adjust the configuration if necessary to account for any differences between the two services, such as connection strings or service-specific settings.
Now we need to migrate the actual data. If your index is built from an external data source (like Azure SQL or Blob Storage), you can recreate the corresponding data source and indexer in the target service, then run the indexer to populate the new index automatically. Alternatively, if your data is stored exclusively in the search index, you can extract all the documents from the source using the Search API—making sure to handle pagination—and then perform a bulk upload using the Index API’s bulk functionality to transfer the documents to the new index.
Any related configurations such as indexers, data sources, or cognitive skillsets should also be migrated. Export these definitions from your source resource and set them up in the destination service to ensure that all aspects of your search solution remain consistent.
It’s essential to perform thorough testing on the new index. if the source index is actively updated, you may need to plan for a synchronization window or consider an incremental migration strategy to maintain data consistency. Automating these steps with tools like the Azure CLI, PowerShell, or Azure SDKs can further streamline the process and provide a repeatable migration workflow.
https://learn.microsoft.com/en-us/rest/api/searchservice/addupdate-or-delete-documents
https://learn.microsoft.com/en-us/azure/search/
If you have any further assistant, do let me know.
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.