<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [Python SDK | API] Inconsistent results with files_search_v2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/767410#M33548</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706500"&gt;@iNeil&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. Confirming that the issue has been resolved. Are you able to share the details around the root cause?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 08:39:45 GMT</pubDate>
    <dc:creator>gavinho</dc:creator>
    <dc:date>2024-05-01T08:39:45Z</dc:date>
    <item>
      <title>[Python SDK | API] Inconsistent results with files_search_v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/765443#M33478</link>
      <description>&lt;P&gt;We are experiencing inconsistent results with the files_search_v2 function with both the Python SDK and API. An example is if we are searching for a particular file: '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_FRA.srt'&lt;/P&gt;&lt;P&gt;If we search for a particular string eg. 'TE00000114_06_0011_A2' we are returned a list of results which does not include the file in question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;['/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_NLD.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_CC_ENG.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_TUR.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_CMN.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_CMN_FMT.srt']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we 'widen' the search to now search for the following string 'TE00000114_06_0011_A', the following and expected results are returned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;['/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_FRA.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_NLD.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_CC_ENG.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_TUR.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_CMN.srt', '/Media Coordination/VERSIONING/Graveyard_Carz_TE00000114/S06/Subs/TE00000114_06_0011_A2_S_CMN_FMT.srt']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simplified version of the function here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def dropbox_find_local():
    dropbox_vers_path = '/Media Coordination/VERSIONING'
    search_string = 'TE00000114_06_0011_A'
    sub_ext = '.srt'
    def process_entries(entries):
        for entry in entries:
            metadata = entry.metadata.get_metadata()
            local_file = metadata.path_display
            local_list.append(local_file)
    local_list = []
    search_opt = SearchOptions(path=dropbox_vers_path, file_extensions=[sub_ext.lstrip('.')], filename_only=True)
    result = dbx.files_search_v2(search_string, options=search_opt)
    process_entries(result.matches)
    while result.has_more:
        result = dbx.files_search_continue_v2(result.cursor)
        process_entries(result.matches)
    print(local_list)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This same behaviour can be reproduced if we use the web API which uses the same files_search_v2 endpoint:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/search/work?path=%2FMedia+Coordination%2FVERSIONING&amp;amp;query=TE00000114_06_0011_A2" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/search/work?path=%2FMedia+Coordination%2FVERSIONING&amp;amp;query=TE00000114_06_0011_A2&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Missing results)&lt;BR /&gt;&lt;A href="https://www.dropbox.com/search/work?path=%2FMedia+Coordination%2FVERSIONING&amp;amp;query=TE00000114_06_0011_A" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/search/work?path=%2FMedia+Coordination%2FVERSIONING&amp;amp;query=TE00000114_06_0011_A&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Expected behaviour)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 06:51:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/765443#M33478</guid>
      <dc:creator>gavinho</dc:creator>
      <dc:date>2024-04-22T06:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: [Python SDK | API] Inconsistent results with files_search_v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/765541#M33481</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1828056"&gt;@gavinho&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks for the report! This case has been escalated to the engineering team. I'll follow up here once I have any updates on this.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 14:37:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/765541#M33481</guid>
      <dc:creator>iNeil</dc:creator>
      <dc:date>2024-04-22T14:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: [Python SDK | API] Inconsistent results with files_search_v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/766540#M33528</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1828056"&gt;@gavinho&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The engineering team has located and fixed the issue with searching files and folders. Please let us know if you need further assistance with this case.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 13:43:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/766540#M33528</guid>
      <dc:creator>iNeil</dc:creator>
      <dc:date>2024-04-26T13:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: [Python SDK | API] Inconsistent results with files_search_v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/767410#M33548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706500"&gt;@iNeil&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. Confirming that the issue has been resolved. Are you able to share the details around the root cause?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 08:39:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/767410#M33548</guid>
      <dc:creator>gavinho</dc:creator>
      <dc:date>2024-05-01T08:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: [Python SDK | API] Inconsistent results with files_search_v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/767457#M33550</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1828056"&gt;@gavinho&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thank you for confirming that the issue is resolved! Unfortunately I’m unable to provide the root cause for this case. However there was an issue with our search functionality that caused inconsistent results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 13:53:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-API-Inconsistent-results-with-files-search-v2/m-p/767457#M33550</guid>
      <dc:creator>iNeil</dc:creator>
      <dc:date>2024-05-01T13:53:46Z</dc:date>
    </item>
  </channel>
</rss>

