top of page

Adding Hidden content to MS search in PnP Modern Search

  • Writer: Kasper Larsen
    Kasper Larsen
  • Dec 11, 2024
  • 1 min read

Some of the data sources in Graph are hidden from the default search. Right now we know about at least two sources:

  1. SharePoint Embedded content

  2. 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


30103817

  • Twitter
  • LinkedIn

©2023 by M365thinking. Proudly created with Wix.com

bottom of page