searchbox-api

Is there a delay when using the Box.com search API?


I'm using the Search API as defined here:

https://developers.box.com/docs/#search

It works well, though I noticed that when I make a folder on the site, then immediately call the API searching for that folder name, it doesn't appear in the results for a minute or so. Is there something I'm doing wrong, or some way to force it to do a live search? Thanks.


Solution

  • You're not doing anything wrong. It just takes a little bit of time for the search indexes to be updated with the new file/folder metadata. There's nothing you can do client-side to speed this up.

    If you need immediate access that new folder, consider saving the folder ID that's returned in the response of the Create a New Folder request.