Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

iamimranc's avatar
iamimranc
Explorer | Level 4
8 years ago

Search not returning all results in v2

In version v2 , only prefix based search is working. I have a file DISADVANTAGE.JPEG in my account. In version V1, on searching substring "dis" or "adv" , Search result contained this file.

However in version V2,  searching the substring  "adv" doesnt show this file . ( searching substring  "dis" , displays this file.)

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago

    This is the expected behavior, per the API v2 /search documentation:

     

    "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")."

     

    Since you're only supplying one token, that is the last token, which is used for prefix matching. We'll consider this a feature request for a way to do this the old way instead.

     

  • iamimranc's avatar
    iamimranc
    Explorer | Level 4
    8 years ago

    Thank you for the quick reply.

    Is there any mechanism for us to  know once this feature request is implemeneted.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    I'll be happy to follow up on this thread if/when I have an update on this.

About Dropbox API Support and Feedback

Node avatar for 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!