We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Digitalhappy
9 years agoExplorer | Level 4
files/search results seem to be too inclusive
My application uses files/search (with mode=filename) to find specific marker files with our dropbox structure in order to identify the correct folder to work with.
These marker files have uniq...
Digitalhappy
9 years agoExplorer | Level 4
Hi Greg,
I have raised this as ticket with the business support team and provided logs showing the difference in response from files/search from yesterday and today.
I know there isn't an explicit way to force an exact match but prior to today the matches returned from files/search only ever returned a single match when you searched for a filename that existed somewhere in Dropbox.
My use case is to identify folders created by the Dropbox for Salesforce integration. It creates an ".{{SFID}}.sfdb" file in each related folder, where {{SFID}} is the salesforce ID of the related object.
My search params were very simple;
{
"path":"",
"query":"\\.{{SFID}}.sfdb",
"mode":"filename"
}
This gave a simple method to identify folders based on the existence of special marker files.
Today the search is returning "similar" matches and in many cases the similar matches are quite different from what you searched for.
This would be ok if you could be sure that the exact match was ranked the highest in the search results but unfortunately that doesn't appear to be the case.
In many cases the similar - but often quite different - matches appear higher up in the response set. In some cases the similar responses are so numerous that the exact match doesn't appear in the first 100 matches and requires further requests to find the match.
I'm currently trying searches using different search query strings to see if I can reliable return the exact match first.
Greg-DB
Dropbox Community Moderator
9 years agoThanks! We'll check the logs in your ticket and look into this.
- Greg-DB9 years ago
Dropbox Community Moderator
I don't have an update on this yet, but this is currently open with engineering. I'll follow up here once I have some news for you.- Greg-DB9 years ago
Dropbox Community Moderator
This should be fixed now. Please let us know if you're still seeing any issues.- dev19 years agoNew member | Level 2
I think I have fallen foul of this as well. I'm pretty sure up until recently (presumably 3 weeks ago) searching for the filename "ABC.pdf" only returned an exact match. But now it's also matching "ABC blah blah.pdf" which I don't want.
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!