I have an application where the client side update a blob. After the blob is updated, I run the Indexer so that it updates the index. After I do a search on the updated index to retrieve the updated event to show it in the frontend.
The problem is that it still shows the old data. Even though the RunAsync() is completed, in otherwords meaning that the index is updated, the searchAsync still returns the old data.
If I put Delay between the update and search I then get the updated document.
Any reason why this is happening??
EDIT:
To verify if the job is completed I use the following:
IndexerExecutionStatus s = _searchServiceClient.Indexers.GetStatusAsync(indexerName).Result.LastResult.Status;