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

Forum Discussion

toak's avatar
toak
Explorer | Level 3
8 years ago

dropbox api v2 files search returns matches where fname does not match query

using the python sdk

 

a search with:

 

dbx.files_search('/Actives', 'f10-13-13.xls')

 

results in the following matches with meta.path_lower_case:

 

  1. u'/actives/zzzzzzz/gh apotheek - f10-13-1185/gh apotheek - f10-13-1185.xls'
  2. u'/actives/audio techn acq - f10-13-13/audio techn acq - f10-13-13.xlsx'

It is not looking into the content. I was looking for the second, why did he match the first ? 

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    Thanks for the report! We'll look into it.
  • Clifton L.'s avatar
    Clifton L.
    Helpful | Level 5
    8 years ago

    I'm seeing erratic results with the v2 search API as well.

     

    I have the following filenames in my folder:

     

    DaveLogbook.pilotpro
    Logbook-Dave.pilotpro
    Logbook.db
    Logbook.pilotpro
    PilotPro.db

    This search: 

    $dropbox->search('/', 'Logbook.pilotpro', []);

     

    ...returns the following files:

    Logbook.db
    ------------------
    DaveLogbook.pilotpro
    ------------------
    Logbook-Dave.pilotpro
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago

    Clifton L. Are you still seeing "Logbook.db" returned now when searching "Logbook.pilotpro"?

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!