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

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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

      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 Staff rankDropbox Staff
        I'll be happy to follow up on this thread if/when I have an update on this.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 days ago
351 Following

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!