You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/embedded/concepts/content-experiences/search-content.md
+201-4Lines changed: 201 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Search SharePoint Embedded containers and content
3
3
description: Overview on how to search SharePoint Embedded containers and content
4
-
ms.date: 05/21/2024
4
+
ms.date: 08/15/2024
5
5
ms.localizationpriority: high
6
6
---
7
7
@@ -12,7 +12,7 @@ Use the Microsoft Search API in Microsoft Graph to search SharePoint Embedded co
12
12
> [!NOTE]
13
13
>
14
14
> 1. Search API only supports Delegated permissions.
15
-
> 2. Your search requests must specify and set the `includeHiddenContent` parameter if your application has opted our from content discoverability in Microsoft 365. Learn more about [SharePoint Embedded content discoverability](./user-experiences-overview.md).
15
+
> 1. Your search requests must specify and set the `includeHiddenContent` parameter if your application has opted out of content discoverability in Microsoft 365. Learn more about [SharePoint Embedded content discoverability](./user-experiences-overview.md).
## Example 4: Search for content by title in a specific container
239
239
240
-
This example queries all the content by a specific title in a specific container instance, with the SharePoint Embedded application opted out from content discoverability on Microsoft 365. The response includes all driveItems in the specific container instance that match the criteria.
240
+
This example queries all the content by a specific title in a specific container instance, with the SharePoint Embedded application opted out from content discoverability on Microsoft 365. The response includes all `driveItems` in the specific container instance that match the criteria.
This example queries all the content by the specified words across all containers of a specific container type, with the SharePoint Embedded application opted out from content discoverability on Microsoft 365. The response includes all driveItems that match the criteria.
339
+
This example queries all the content by the specified words across all containers of a specific container type, with the SharePoint Embedded application opted out from content discoverability on Microsoft 365. The response includes all `driveItems` that match the criteria.
## Example 6: Search containers by container custom property
435
+
436
+
This example queries all containers by the specified custom property key:value pair, with the SharePoint Embedded applicatio that has opted out from content discoverability on Microsoft 365. The response includes all containers that match the criteria.
437
+
438
+
> [!NOTE]
439
+
> The custom property name must be appended with the text "OWSTEXT" in the query string.
440
+
441
+
### Request
442
+
443
+
```HTTP
444
+
POST /search/query
445
+
Content-Type: application/json
446
+
447
+
{
448
+
"requests": [
449
+
{
450
+
"entityTypes": [
451
+
"drive"
452
+
],
453
+
"query": {
454
+
"queryString": "customPropertyNametOWSTEXT:customPropertyValue AND ContainerTypeId:498c6855-8f0e-0de7-142e-4e9ff86af9ae"
0 commit comments