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 ? 

    • Clifton L.'s avatar
      Clifton L.
      Helpful | Level 5

      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 Staff rankDropbox Staff

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

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 9 minutes 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!