'Updating Algolia record has a delay before you can query it

So I am using graphql (JS) for my algolia processes and I am using this framework.

I am doing:

await index.partialUpdateObject({someProp: newValue});`

Now, EVERYTHING works fine, however I noticed that if I (the user) performs an action search:

await index.search(query, options);

There's like a 1- 3 seconds delay before the data on my search gets updated.


Question: Is there a way to know when the data in algolia has finished updating? a push notification or something?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source