We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Matias K.1
10 years agoNew member | Level 1
search in v1 vs v2
We were looking at migrating to v2, but it seems the search functions is incompatible. V1 is "must get substring match on all space separated components", which is pretty straightforward. But on v2 you need a perfect match on other parts except last (which is prefix). For one the v2 implementation is pretty strange (what's the scenario for that logic) and secondly it's impossible to implement things you can do on v1.
What we do is we want to search all files with specific extension and in v1 we just search ".extension" and filter making sure it was a suffix hit. But on v2 you can't do that
Third would't it make more sense to support regex filtering, pretty standard and WAAYY more powerful?
4 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the feedback Matias! The team is aware of these differences and difficulties with search in API v2 versus v1 and hopes to address them in the future. I can't offer a timeline for when improvements may be available though. I've included your feedback as feature requests for the various improvements to API v2 search to the team.
- Greg-DB10 years ago
Dropbox Community Moderator
Hi Matias, quick update: searching by file extension should be working now.
- Matias K.110 years agoNew member | Level 1
Gregory, what changed and how you'd do a file extension search with v2 API? The docs look like it's not changed, i.e. only last search term is used for a prefix match, i.e. you can't use it for file suffix.
- Greg-DB10 years ago
Dropbox Community Moderator
We changed it to not respect the period in a query, e.g., so if you just search for ".mov" the results will include "test.mov" but not "not a movie file.txt".
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 2 days ago
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 or Facebook.
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!