Replies: 1 comment 2 replies
-
Use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We are seeing items in the "PreservationHoldLibrary" (we have retention policies on all sites in SharePoint Online) appearing in the search result. We also have site templates that are appearing incorrectly in our result set. Any suggestions on good practice to prevent these appearing in search results list?
Lets say the query template to return all pages in a set of sites is as follows:
{searchTerms}
Path:"https://tenantname.sharepoint.com/sites/siteprefixone*"
Path:"https://tenantname.sharepoint.com/sites/siteprefixtwo*"
FileType:aspx
Should we use -Path:PreservationHoldLibrary and -Path:/SitePages/Templates/ to exclude these libraries or is there a better way to achieve this?
Thanks
Brian
Beta Was this translation helpful? Give feedback.
All reactions