FAQ Troubleshooting Why are my objects not immediately available for search after adding them?

Last updated 29 March 2017

Write operations in Algolia are asynchronous by design, so the indexing may take a few seconds (a few minutes if you index a lot of records at the same time).

It means that when you add or update an object to your index, our servers will reply to your request as soon as they understood the write operation but the actual indexing will start a few seconds later, asynchronously.

If you want to know when a particular write operation is completed, you can use the task endpoint method.

Here’s an example using our JavaScript API client:

  'firstname': 'Jimmie',
  'lastname': 'Barninger'
}, function gotTaskID(error, content) {
  console.log("write operation received: " + content.taskID);
  index.waitTask(content.taskID, function contentIndexed() {
    console.log("object " + content.objectID + " indexed");

Did you find this page helpful?

We're always looking for advice to help improve our documentation! Please let us know what's working (or what's not!) - we're constantly iterating thanks to the feedback we receive.

Send us your suggestions!