Adding Hidden content to MS search in PnP Modern Search
Some of the data sources in Graph are hidden from the default search. Right now we know about at least two sources:
SharePoint Embedded content
Content archived with Microsoft Archive
SharePoint Embedded content
When you are searching for the content of a SharePoint Embedded Container in the Graph Explorer you get zero hits even though the query is correct.

as per Search SharePoint Embedded containers and content | Microsoft Learn the reason is that this content by default is hidden and we must add the "SharePointOneDriveOptions" parameter "includeHiddenContent"
Now we get the expected results:

Content archived with Microsoft Archive
Similar to SharePoint Embedded content we have to add the "includeHiddenContent" clause in order to get results:

But how do I get all the MS archived content without knowing all the Paths?
The "IsArchived" property will provide just that:

I hear you say, "well, this is all fine, but I want to use this in PnP Modern Search. Is it supported?"
Look in the change log for the next version





Comments