We need to update a batch of documents based on some criteria in an Azure Search Index. The only way we can think of with the current implementation is :
Search for the required documents (e.g. Category = 1)
Create new documents using the document Id of the result
In the new documents update the required fields (e.g. Price = Price*1.1)
Use a Merge to Update the newly created documents to update existing ones.
The above code looks like we are back in the 1960s or that we have a few screws loose in our brain! Is this the only way to achieve this in Azure Search?
We are using the .NET SDK.