<?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 /search lists files that do not match the query in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352002#M20144</link>
    <description>&lt;P&gt;As of yesterday June 25, 2019 2:00am GMT+0200 our test suite beeped and shows that the `/search` endpoint outputs results that do not match the query string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request body:&lt;/P&gt;&lt;PRE&gt;{path: "/tests", query: "testprefix_4553450483_", mode: "filename"}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Request response:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;matches: [,…]
0: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4553450483_7432473521.txt",…}}
1: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4553450483_3913973871.txt",…}}
2: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4121529854_5588117075.txt",…}}
3: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4121529854_4679376563.txt",…}}
4: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_9851551923_3797263296.txt",…}}
5: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_2279819496_7108292884.txt",…}}&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;Environment: There are a lot of old test files in the respective folder. We try to delete them after each test, but sometimes the test suite fails to do so. So it may have something to do with the number of files in the folder. However renaming the folder and working with an empty one does not change the situation. The files are still in the result of the query even after hours of time elapsed for performing indexing on the server side.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2019 23:59:22 GMT</pubDate>
    <dc:creator>offbeata</dc:creator>
    <dc:date>2019-06-25T23:59:22Z</dc:date>
    <item>
      <title>/search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352002#M20144</link>
      <description>&lt;P&gt;As of yesterday June 25, 2019 2:00am GMT+0200 our test suite beeped and shows that the `/search` endpoint outputs results that do not match the query string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request body:&lt;/P&gt;&lt;PRE&gt;{path: "/tests", query: "testprefix_4553450483_", mode: "filename"}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Request response:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;matches: [,…]
0: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4553450483_7432473521.txt",…}}
1: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4553450483_3913973871.txt",…}}
2: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4121529854_5588117075.txt",…}}
3: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4121529854_4679376563.txt",…}}
4: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_9851551923_3797263296.txt",…}}
5: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_2279819496_7108292884.txt",…}}&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;Environment: There are a lot of old test files in the respective folder. We try to delete them after each test, but sometimes the test suite fails to do so. So it may have something to do with the number of files in the folder. However renaming the folder and working with an empty one does not change the situation. The files are still in the result of the query even after hours of time elapsed for performing indexing on the server side.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 23:59:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352002#M20144</guid>
      <dc:creator>offbeata</dc:creator>
      <dc:date>2019-06-25T23:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: /search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352007#M20145</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the detail. I'm looking into it.&lt;/P&gt;
&lt;P&gt;Can you confirm whether the tests were running correctly in the past? Did they start failing without any changes being made to the code?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 00:04:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352007#M20145</guid>
      <dc:creator>TaylorKrusen</dc:creator>
      <dc:date>2019-06-26T00:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: /search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352028#M20146</link>
      <description>&lt;P&gt;Hey Taylor,&lt;/P&gt;&lt;P&gt;yes I can confirm that. Our network test suite runs five times each night and we had five successful runs on the 24th and five failing runs for the same commit on the 25th with the respective test against your /search API failing as described above. What may have changed however between the runs is the contents of the Dropbox account that we use for testing.&lt;/P&gt;&lt;P&gt;Greetings&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 02:08:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352028#M20146</guid>
      <dc:creator>offbeata</dc:creator>
      <dc:date>2019-06-26T02:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: /search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352169#M20153</link>
      <description>&lt;P&gt;Hi Stefan!&lt;/P&gt;
&lt;P&gt;Apologies for the delay. I was able to repro the issue and have filed a bug with engineering. I'll keep you in the loop when I hear back.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for letting us know!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 20:36:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352169#M20153</guid>
      <dc:creator>TaylorKrusen</dc:creator>
      <dc:date>2019-06-26T20:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: /search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352198#M20155</link>
      <description>&lt;P&gt;Stefan, is this behavior having an impact on your production application, too?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have full context of the decision, but learned that this is a change in the default behavior of the endpoint.&amp;nbsp;&lt;BR /&gt;In the 'Parameters' section of the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-search" target="_self"&gt;file /search endpoint docs&lt;/A&gt;:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;query&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I class="type show_datatype"&gt;String&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;FONT size="2"&gt;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").&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Basically, the `query` parameter doesn't guarantee&amp;nbsp;a substring match. The docs could be a little clearer here.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 22:55:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352198#M20155</guid>
      <dc:creator>TaylorKrusen</dc:creator>
      <dc:date>2019-06-26T22:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: /search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352209#M20157</link>
      <description>&lt;P&gt;Hey Taylor,&lt;/P&gt;&lt;P&gt;you are right the documentation does not mention a full substring match. I my case however I leverage prefix matching on the filenames as stated by the documentation: '&lt;SPAN&gt;the last token is used for prefix matching'. Since I only give one token in the query string this should match prefix of the file name right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This may affect the production app as we use the /search api to discover existing accounts for our application in the storage. I have a workaround in place that checks manually if the response is really a prefix match.&lt;/P&gt;&lt;P&gt;I tested again manually and the issue is still present in the Dropbox that I use for integration testing. Worse, the call seems to ignore the path parameter, too. Or is the path matched by prefix too? Documentation says "&lt;SPAN&gt;The path in the user's Dropbox to search. Should probably be a folder."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Request body:&lt;/P&gt;&lt;PRE&gt;{path: "/tests", query: "testprefix_8753399257_", mode: "filename"}&lt;/PRE&gt;&lt;P&gt;Response (abbr.):&lt;/P&gt;&lt;PRE&gt;matches: [,…]
0: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_8753399257_7597581443.txt",…}}
  match_type: {.tag: "both"}
  metadata: {.tag: "file", name: "testprefix_8753399257_7597581443.txt",…}
  .tag: "file"
  client_modified: "2019-06-26T23:23:28Z"
  content_hash: "4b3b3d7dfd0b9e520d6c0c60a6975ef8dcbe35e200b6ea9ee19a9b3e7095eb9c"
  id: "id:MZOmls7LXUAAAAAAAAEEdA"
  is_downloadable: true
  name: "testprefix_8753399257_7597581443.txt"
  path_display: "/tests/testprefix_8753399257_7597581443.txt"
  path_lower: "/tests/testprefix_8753399257_7597581443.txt"
  rev: "daea447b067c3"
  server_modified: "2019-06-26T23:23:28Z"
  size: 36
1: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_8753399257_1141835041.txt",…}}
2: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_9163371511_8050760243.txt",…}}
3: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_9163371511_6853213962.txt",…}}
4: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4121529854_5588117075.txt",…}}
5: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_4121529854_4679376563.txt",…}}
6: {match_type: {.tag: "both"}, metadata: {.tag: "file", name: "testprefix_9851551923_3797263296.txt",…}}
  match_type: {.tag: "both"}
  metadata: {.tag: "file", name: "testprefix_9851551923_3797263296.txt",…}
  .tag: "file"
  client_modified: "2019-06-25T23:11:01Z"
  content_hash: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
   id: "id:MZOmls7LXUAAAAAAAAAGzQ"
  is_downloadable: true
  name: "testprefix_9851551923_3797263296.txt"
  path_display: "/tests many files/testprefix_9851551923_3797263296.txt"
  path_lower: "/tests many files/testprefix_9851551923_3797263296.txt"
  rev: "d94ba47b067c3"
  server_modified: "2019-06-25T23:11:23Z"
  size: 0&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;Greetings&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 23:31:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352209#M20157</guid>
      <dc:creator>offbeata</dc:creator>
      <dc:date>2019-06-26T23:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: /search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352361#M20161</link>
      <description>&lt;P&gt;Thanks for the detailed info and logs, Stefan. I added it to the discussion with engineering.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would interpret the docs in a similar way for this endpoint.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll let you know when I get new information. Thanks again for the detail and concise explanations.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 18:46:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/352361#M20161</guid>
      <dc:creator>TaylorKrusen</dc:creator>
      <dc:date>2019-06-27T18:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: /search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/358392#M20429</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1178088"&gt;@offbeata&lt;/a&gt;&amp;nbsp;Apologies for the delay. This should be working as expected again now. Please try again and let me know if it is or isn't working properly.&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 17:14:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/358392#M20429</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-01T17:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: /search lists files that do not match the query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/359686#M20497</link>
      <description>&lt;P&gt;Hey Greg and Taylor, it seems to be fixed, thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 10:21:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/search-lists-files-that-do-not-match-the-query/m-p/359686#M20497</guid>
      <dc:creator>offbeata</dc:creator>
      <dc:date>2019-08-12T10:21:10Z</dc:date>
    </item>
  </channel>
</rss>

