Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
offbeata
6 years agoExplorer | Level 3
/search lists files that do not match the query
As of yesterday June 25, 2019 2:00am GMT+0200 our test suite beeped and shows that the `/search` endpoint outputs results that do not match the query string. Request body: {path: "/tests", query: ...
TaylorKrusen
Dropbox Staff
6 years agoHi Stefan!
Apologies for the delay. I was able to repro the issue and have filed a bug with engineering. I'll keep you in the loop when I hear back.
Thank you for letting us know!
TaylorKrusen
Dropbox Staff
6 years agoStefan, is this behavior having an impact on your production application, too?
I don't have full context of the decision, but learned that this is a change in the default behavior of the endpoint.
In the 'Parameters' section of the file /search endpoint docs:
query String The string to search for. The search string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. "bat c" matches "bat cave" but not "batman car").
Basically, the `query` parameter doesn't guarantee a substring match. The docs could be a little clearer here.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!