Does Algolia’s response wait for the indexing to be done? Or, is there a way to ask the response to wait until the indexing is done?
Algolia’s response is confirmation (200 response) that the indexing operation has been put into a job queue for processing, but that does not mean that the indexing has completed - eventually it will be indexed, but only after all jobs in the queue ahead of it are done.
To confirm indexing (“publishing”) of your request, you can use the waitTask method. We have it for csharp:
Note that this is an expensive operation processing-wise. Too many of them will not only slow you down, but also the service of other apps on the cluster (if it is a shared cluster). It’s an option should you need the confirmation but I would recommend doing it only as needed!