Forum Discussion
365User9
Sep 29, 2022Copper Contributor
Configure SharePoint Online Search parameters
Hello all, I wonder if anyone would be able to offer some help. My organisation has a SharePoint Online Intranet hub site which currently returns search results from across all sites (as specifi...
NanddeepNachan
Sep 29, 2022Learn Expert
Hi 365User9
Firstly, Hub site shows the content from sites connected to it.
But, if you still want to restrict the search results, you can use below PnP PowerShell
Connect-PnPOnline -Url <Specify your site URL>
$web = Get-PnPWeb
# 1 for Tenant, 2 for Hub, 3 for Site, 0 for default behavior
$web.SearchScope = 1
$web.Update()
Invoke-PnPQuery