<?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: SearchV2Async returning inconsistent results in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691463#M3417</link>
    <description>&lt;P&gt;The Dropbox search backend may apply some tokenization and rewriting to queries, e.g., to try to handle typos, exclude potentially extraneous results, include potentially relevant results, etc. That being the case, you won't always see only exact matches. For instance, for the cases you have shown here, it may remove stop words like "this", and include results for potentially correcting typos or related tokens, such as "text" for "txt".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll pass this along as requests to specifically document these behaviors for the API endpoint, as well as the ability to do strict matching searches, but I can't promise if/when these might be done.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 17:10:21 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-06-13T17:10:21Z</dc:date>
    <item>
      <title>SearchV2Async returning inconsistent results</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691263#M3414</link>
      <description>&lt;P&gt;given the following code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;namespace Dropbox
{
   internal class Program
   {
      static void Main(string[] args)
      {
         DropboxClientConfig config = new DropboxClientConfig
         {
            MaxRetriesOnError = 0
         };
         DropboxClient dropboxClient = new DropboxClient(AccessToken.ValidToken, config);

         SearchOptions searchOptions = new SearchOptions("", fileStatus: FileStatus.Active.Instance, filenameOnly: true, fileExtensions: new List&amp;lt;string&amp;gt; { "txt"});
         SearchV2Arg searchV2Arg = new SearchV2Arg("test", options: searchOptions);

         var result = dropboxClient.Files.SearchV2Async(searchV2Arg).Result;
         List&amp;lt;string&amp;gt; filePaths = new List&amp;lt;string&amp;gt;();

         foreach (SearchMatchV2 match in result.Matches)
         {
            filePaths.Add(match.Metadata.AsMetadata.Value.PathLower);
         }
      }
   }
}&lt;/LI-CODE&gt;&lt;P&gt;if I run it, it shows the following results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbrownnw_0-1686613411436.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/38446iE6BC1A624C1C6BA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sbrownnw_0-1686613411436.png" alt="sbrownnw_0-1686613411436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if I change the query value to "this" at line 19 and I run it, I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbrownnw_1-1686613507574.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/38447iEAB4EB5D3D422358/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sbrownnw_1-1686613507574.png" alt="sbrownnw_1-1686613507574.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note, the filePaths list is empty.&amp;nbsp; I would expect the two following file paths to be found (subset from the original 9 above):&lt;/P&gt;&lt;P&gt;"/this is a test.txt"&lt;/P&gt;&lt;P&gt;"/test 2/this is a test.txt"&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 23:46:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691263#M3414</guid>
      <dc:creator>sbrownnw</dc:creator>
      <dc:date>2023-06-12T23:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: SearchV2Async returning inconsistent results</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691270#M3415</link>
      <description>&lt;P&gt;note, if I remove the fileExtensions filter arg, I still get no results searching for "test":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbrownnw_0-1686613912288.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/38448i99D29E021B6E7945/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sbrownnw_0-1686613912288.png" alt="sbrownnw_0-1686613912288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 23:52:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691270#M3415</guid>
      <dc:creator>sbrownnw</dc:creator>
      <dc:date>2023-06-12T23:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: SearchV2Async returning inconsistent results</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691284#M3416</link>
      <description>&lt;P&gt;and when I change the query value to "txt", I get the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbrownnw_0-1686615411140.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/38449iD2B73E720D05995B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sbrownnw_0-1686615411140.png" alt="sbrownnw_0-1686615411140.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would expect every file expect the last one "/new rich text format.rtf" to be returned.&amp;nbsp; Why is the .rtf file being returned with this query?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 00:17:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691284#M3416</guid>
      <dc:creator>sbrownnw</dc:creator>
      <dc:date>2023-06-13T00:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: SearchV2Async returning inconsistent results</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691463#M3417</link>
      <description>&lt;P&gt;The Dropbox search backend may apply some tokenization and rewriting to queries, e.g., to try to handle typos, exclude potentially extraneous results, include potentially relevant results, etc. That being the case, you won't always see only exact matches. For instance, for the cases you have shown here, it may remove stop words like "this", and include results for potentially correcting typos or related tokens, such as "text" for "txt".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll pass this along as requests to specifically document these behaviors for the API endpoint, as well as the ability to do strict matching searches, but I can't promise if/when these might be done.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 17:10:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691463#M3417</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-06-13T17:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: SearchV2Async returning inconsistent results</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691473#M3418</link>
      <description>&lt;P&gt;a list of the stop words would be appreciated also.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 17:48:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691473#M3418</guid>
      <dc:creator>sbrownnw</dc:creator>
      <dc:date>2023-06-13T17:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: SearchV2Async returning inconsistent results</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691476#M3419</link>
      <description>&lt;P&gt;Thanks for the note, I'll add that to the request as well.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 17:54:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/SearchV2Async-returning-inconsistent-results/m-p/691476#M3419</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-06-13T17:54:53Z</dc:date>
    </item>
  </channel>
</rss>

