Feb 06 2020 08:53 AM
Greetings all, I am gathering information regarding implications of using the new Home Sites feature, and I'm curious about any search scope differences between a regular hub site search and a hub site that has been designated as the SharePoint Home site. Specifically, the hub site and its associated satellites are being designed to serve as authoritative information in the org. My question is, would designating the hub as the Home Site change that scope to include all of SharePoint, even sites not associated with the intranet hub? We want to be thoughtful about this decision. Many thanks for your input!
Feb 11 2020 05:38 AM - edited Feb 11 2020 02:28 PM
My understanding is when setting the home site it changes the search scope to organization. But it’s an easy PowerShell flag to set the search scope on a site which you can just set the search scope back to hub only. I’m 'think' this could work, if you have a test setup you could run it on first. Or give me a few hours and I’ll confirm on my test tenant home site but I don’t see why it wouldn’t!
Here are instructions. Set scope to 0 should put scope back to a hub scope (default)
To change this setting:
1. Start PowerShell in administrator mode as you will be installing the PnP extensions.
2. Run the following commands to in this order:
PS C:\WINDOWS\system32> Install-Module SharePointPnPPowerShellOnline
# If you previously had installed this module, you may need to use the "-Force" parameter to install the newer version.
PS C:\WINDOWS\system32> Connect-PnPOnline -Url https://contosodemosg.sharepoint.com/sites/Strategy -UseWebLogin
# this will prompt you to sign into your site. Use the site owner credentials to sign in
PS C:\WINDOWS\system32> $web = Get-PnPWeb
PS C:\WINDOWS\system32> $web.SearchScope = 1
# 1 for Tenant, 0 for default behavior
PS C:\WINDOWS\system32> $web.Update()
PS C:\WINDOWS\system32> Invoke-PnPQuery
Feb 11 2020 02:22 PM
SolutionFeb 12 2020 10:54 AM
@Chris WebbThank you for investigating this, it is a huge relief to understand the implications on search!
Aug 01 2023 09:44 AM
@Chris Webb not sure if something has changed since you posted way back when but I have just managed to change the search scope on our home site from 'Tenant' to 'Hub' using the instructions on this page https://learn.microsoft.com/en-us/microsoftsearch/manage-spo-search-box
Nov 28 2023 02:42 AM
@andrewmarr These are my findings:
I'm curious as to what other people's experiences are. For me specifically, I have a customer who would like the search scope of their homesite to be just that single site; they don't have any hubsites, just a single site. It seems that, for me at least, even though the search scope seems to be set to the current site only, the results are surfaced from across the tenant regardless.
Feb 11 2020 02:22 PM
Solution