We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
johndoe5
5 years agoExplorer | Level 3
search_v2: has_more=true even though there're no more results
I have a directory a, with one sub directory, which contains another subdirectory. Each directory contains an image file with a ".jpg" extension (so three images in total). When I create a search qu...
- 5 years ago
Hi johndoe5,
Since Dropbox API is asynchronous, if not explicitly pointed out something else for particular call, you can't rely on any particular result. Any possible result, described in documentation, is... possible! So you must not assume anything, but strictly follow the API description. At the point, you have described, possibly there wasn't enough time to ongoing procedure gets to the end and it assumes there are other entries (even though there are not). That's it.
Hope this clarifies matter.
Greg-DB
Dropbox Community Moderator
5 years agojohndoe5 Здравко is correct, the page size of a result from /2/files/search_v2 and /2/files/search/continue_v2 is not guaranteed, and may be empty in some cases like this, due to how the Dropbox search functionality works. Your app should be written to call back if 'has_more' is true, but be able to handle empty 'matches' lists.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!