<?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: Dropbox search may not be working as expected in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631758#M29168</link>
    <description>&lt;P&gt;The Dropbox API search functionality doesn't have a parameter to control that behavior, nor documentation or a guarantee on the specific expected behavior for that. However in my testing it does currently seem to behave as you want, that is, when specifying multiple tags in the "query", it is returning only files that contain both tags for me. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of what I'm seeing:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
  --header 'Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;' \
  --header 'Content-Type: application/json' \
  --data '{"query":"#banana","options":{"path":"/files with tags"}}'

# {
#   "has_more": false,
#   "matches": [
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:59Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvrQ",
#           "is_downloadable": true,
#           "name": "test one tag.txt",
#           "path_display": "/files with tags/test one tag.txt",
#           "path_lower": "/files with tags/test one tag.txt",
#           "rev": "5ebdd4583eb3d763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     },
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:57Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvqw",
#           "is_downloadable": true,
#           "name": "test both tags.txt",
#           "path_display": "/files with tags/test both tags.txt",
#           "path_lower": "/files with tags/test both tags.txt",
#           "rev": "5ebdd4583eb3f763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     }
#   ]
# }

curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
  --header 'Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;' \
  --header 'Content-Type: application/json' \
  --data '{"query":"#orange","options":{"path":"/files with tags"}}'

# {
#   "has_more": false,
#   "matches": [
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:57Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvqw",
#           "is_downloadable": true,
#           "name": "test both tags.txt",
#           "path_display": "/files with tags/test both tags.txt",
#           "path_lower": "/files with tags/test both tags.txt",
#           "rev": "5ebdd4583eb3f763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     },
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:58Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvrA",
#           "is_downloadable": true,
#           "name": "test another tag.txt",
#           "path_display": "/files with tags/test another tag.txt",
#           "path_lower": "/files with tags/test another tag.txt",
#           "rev": "5ebdd4583eb3e763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     }
#   ]
# }  

curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
  --header 'Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;' \
  --header 'Content-Type: application/json' \
  --data '{"query":"#orange #banana","options":{"path":"/files with tags"}}'

# {
#   "has_more": false,
#   "matches": [
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:57Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvqw",
#           "is_downloadable": true,
#           "name": "test both tags.txt",
#           "path_display": "/files with tags/test both tags.txt",
#           "path_lower": "/files with tags/test both tags.txt",
#           "rev": "5ebdd4583eb3f763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     }
#   ]
# }&lt;/LI-CODE&gt;
&lt;P&gt;For context: there are three files, one with one tag, one with a different tag, and one with both tags.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you're seeing otherwise, can you share a sample so I can check on that with the team for you? Please show the search parameters you're using, as well as the full result you're getting back, but be sure to redact the access token itself. Feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;open an API ticket&lt;/A&gt; if you'd prefer to share privately. Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 20:52:40 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-10-25T20:52:40Z</dc:date>
    <item>
      <title>Re: Dropbox search may not be working as expected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631521#M29166</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears that basic search is now working - however #tags are not working as expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I search for 2 tags it automatically searches as an or function - #tag1 or #tag2. Is there a way to only search for files containing both #tag1 and #tag2?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:54:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631521#M29166</guid>
      <dc:creator>BPCABA</dc:creator>
      <dc:date>2022-10-25T20:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox search may not be working as expected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631758#M29168</link>
      <description>&lt;P&gt;The Dropbox API search functionality doesn't have a parameter to control that behavior, nor documentation or a guarantee on the specific expected behavior for that. However in my testing it does currently seem to behave as you want, that is, when specifying multiple tags in the "query", it is returning only files that contain both tags for me. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of what I'm seeing:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
  --header 'Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;' \
  --header 'Content-Type: application/json' \
  --data '{"query":"#banana","options":{"path":"/files with tags"}}'

# {
#   "has_more": false,
#   "matches": [
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:59Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvrQ",
#           "is_downloadable": true,
#           "name": "test one tag.txt",
#           "path_display": "/files with tags/test one tag.txt",
#           "path_lower": "/files with tags/test one tag.txt",
#           "rev": "5ebdd4583eb3d763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     },
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:57Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvqw",
#           "is_downloadable": true,
#           "name": "test both tags.txt",
#           "path_display": "/files with tags/test both tags.txt",
#           "path_lower": "/files with tags/test both tags.txt",
#           "rev": "5ebdd4583eb3f763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     }
#   ]
# }

curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
  --header 'Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;' \
  --header 'Content-Type: application/json' \
  --data '{"query":"#orange","options":{"path":"/files with tags"}}'

# {
#   "has_more": false,
#   "matches": [
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:57Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvqw",
#           "is_downloadable": true,
#           "name": "test both tags.txt",
#           "path_display": "/files with tags/test both tags.txt",
#           "path_lower": "/files with tags/test both tags.txt",
#           "rev": "5ebdd4583eb3f763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     },
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:58Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvrA",
#           "is_downloadable": true,
#           "name": "test another tag.txt",
#           "path_display": "/files with tags/test another tag.txt",
#           "path_lower": "/files with tags/test another tag.txt",
#           "rev": "5ebdd4583eb3e763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     }
#   ]
# }  

curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
  --header 'Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;' \
  --header 'Content-Type: application/json' \
  --data '{"query":"#orange #banana","options":{"path":"/files with tags"}}'

# {
#   "has_more": false,
#   "matches": [
#     {
#       "match_type": {
#         ".tag": "file_content"
#       },
#       "metadata": {
#         ".tag": "metadata",
#         "metadata": {
#           ".tag": "file",
#           "client_modified": "2022-10-25T14:56:57Z",
#           "content_hash": "cceac37da5288a6b6716737310c14305c9b16a6e0ff0abce4a306c3de3a59f75",
#           "id": "id:25N5ksooX-sAAAAAAAQvqw",
#           "is_downloadable": true,
#           "name": "test both tags.txt",
#           "path_display": "/files with tags/test both tags.txt",
#           "path_lower": "/files with tags/test both tags.txt",
#           "rev": "5ebdd4583eb3f763fca20",
#           "server_modified": "2022-10-25T15:07:50Z",
#           "sharing_info": {
#             "modified_by": "dbid:AABL4QRrY7tB9viLgPUqmjkzE6Fe5ujlnlE",
#             "parent_shared_folder_id": "1983892000",
#             "read_only": false
#           },
#           "size": 27
#         }
#       }
#     }
#   ]
# }&lt;/LI-CODE&gt;
&lt;P&gt;For context: there are three files, one with one tag, one with a different tag, and one with both tags.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you're seeing otherwise, can you share a sample so I can check on that with the team for you? Please show the search parameters you're using, as well as the full result you're getting back, but be sure to redact the access token itself. Feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;open an API ticket&lt;/A&gt; if you'd prefer to share privately. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:52:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631758#M29168</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-10-25T20:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox search may not be working as expected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631772#M29169</link>
      <description>&lt;P&gt;Example of search inside 2022 folder for all items with # - results show 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-10-25 at 2.52.06 PM.png" style="width: 886px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32562i807E7DA55E47049D/image-dimensions/886x527?v=v2" width="886" height="527" role="button" title="Screen Shot 2022-10-25 at 2.52.06 PM.png" alt="Screen Shot 2022-10-25 at 2.52.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of 2 tags being used to perform search without limiting it to a specific folder. Again results = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-10-25 at 2.52.26 PM.png" style="width: 914px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32563i7D466F4482938C0D/image-dimensions/914x450?v=v2" width="914" height="450" role="button" title="Screen Shot 2022-10-25 at 2.52.26 PM.png" alt="Screen Shot 2022-10-25 at 2.52.26 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of a file - one of many in that 2022 folder and subfolders that contains both tags.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-10-25 at 2.53.27 PM.png" style="width: 995px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32564i57F8A5CCA3D51EAA/image-dimensions/995x562?v=v2" width="995" height="562" role="button" title="Screen Shot 2022-10-25 at 2.53.27 PM.png" alt="Screen Shot 2022-10-25 at 2.53.27 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:55:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631772#M29169</guid>
      <dc:creator>BPCABA</dc:creator>
      <dc:date>2022-10-25T21:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox search may not be working as expected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631922#M29172</link>
      <description>&lt;P&gt;Thanks for following up. You originally replied in a thread regarding using the Dropbox API search functionality in the API section of the forum, but I see you're actually referring to using the Dropbox web site, which may work a bit differently than the public Dropbox API. For help with the Dropbox web site, please &lt;A href="https://www.dropbox.com/support" target="_blank"&gt;contact Dropbox support&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:04:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Dropbox-search-may-not-be-working-as-expected/m-p/631922#M29172</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-10-26T14:04:01Z</dc:date>
    </item>
  </channel>
</rss>

