Modern Search - Provide option to change scope from local to global
Current modern search in communication/modern team site defaults to local scope and search results are from the current site. Users has to click on the SharePoint link from breadcrumb in order to expand the search scope across sites.
Most of our customers prefer to search on the broader scope rather than searching on the current site, esply. for the Communication sites.
Thanks for your feedback! We’d like to understand better. It would be useful to know in which cases you think that your customers actually would want to search on the current site?
The option to set web.SearchScope to Hub is now rolled out 100%.
Alberto, you can already to that from the site search page, and we will be adding a scope control to the search box going forward.
Alberto Suarez commented
I think search should be configurable to let user search in site, any site in hub or global
morten: Global, or all sites, is already in place and you can set that using PowerShell. Hub scope is coming - as long as you're on a tenant which has the search box in the navigation header. And that roll out will hopefully finish in not too long.
Our company intranet (7.000 users) consists of a SharePoint Communication site in a hub site structure with several Communication sites under it. This means that our users sees it as one coherent Intranet site and that our users expect search to function as a global search - that searches in all sites. - No one uses the breadcrump - we really really need a global search function
Search box is still 10% in prod, and is needed for the SearchScope setting. We are closing in on continuing the roll out with an improved experience. We also have progress on the Hub scope setting, and I'll report as soon as I know more on dates.
Sounds good, I think consistent hub scoping will be a good solution for many orgs.
Can I just ask, has the roll out of the search box in the header been completed? I ask because some members of my org who are not on first release still see the traditional search box (even on modern sites) Assuming this is something that needs to be resolved first before the search scope changes will work?
Hub scope is coming, trust me - and sorry for the delay. And for the hub itself it already works, just not for associated sites.
I would probably refrain from going all custom until we fix this bug - but yes it's an option.
Slightly different approach but you can now replace the search results page in modern with your own custom page. This could help whilst MS are developing the out of the box search results: https://techcommunity.microsoft.com/t5/microsoft-search-blog/creating-custom-search-results-pages-in-sharepoint-online/ba-p/1141515
Hi, just to add that setting search for a hub scope is really important for Intranet scenarios. Organisation search for large companies is just too broad so makes much more sense to have your top level Intranet sites all using the same scoped hub search. Looking forward to this being rolled out.
Unfortunately we have not been able to get this out into production yet, due to focusing on issues for rolling out the searchbox in the header world wide. I cannot promise a date, but I hope we will get this out by the end of March.
Clayton James commented
When will the SearchScope for Hub sites be working? The article you reference is from April last year and still no ability set set the scope to the connected hub.
This is causing confusion for users performing search in sites connected to the hub.
@Lorna the below setting will also work with hub sites (soon). The option is there, but the changes to make it work has not been rolled out to production yet.
As for suggestions in the search box, this is served from a "quick index" and is as you've been told, by design. This index contains a subset of metadata only for a file, not the content in the file, so not a full search as the resultpage itself.
Lorna Evans commented
If the setting below can be made to work with hub site scope that would be really useful.
The other problem we have is that while typing in search terms on a site associated to the hub site, results appear from a number of sites associated to the hub, although not all. When you then press enter to see more results, the search list is just from that particular site. This is really confusing for our users. Support told me that it is behaving as designed, which is surprising. Why the change in scope during a search?
Please can the search experience be consistent throughout and show results from across the hub whilst typing in the search and also after you have pressed enter to see the full results list.
You can set the values DefaultScope, Tenant, Hub, Site. There is a known issue when setting to Hub which we are tracking and is being worked on, and also expect to see a PnP cmdlet which makes this easier to set.
A search on a hub site will return results from itself and all associated sites, but a search on an associated site will only return results from itself and not include any results from the hub site. We need the option to include results from the hub site when searching from an associated site.
The only thing I want, is that People result are included in a HUB site search.
Currently in SPOnline, the search on the hub site works for both hub and its associated site. But inside an associated site, it is restricted only for that site. We need an ability to scope the search in all the associated site to its "hub" level. We found a way to elevate the search scope on all the site to tenant level. But for a client with global presence, not all intranet content to be shared globally. Some content are region specific. So they are looking for these options,
1. Elevate the associated site default search to its "Hub" level
2. Is there a possibility to scope the search on only limited hubs and not on a tenant level.
Martijn Schouten commented
Especialy for the root (communication) site, a global search makes sense. This is already in place for the SharePoint Home, where all (accessible) site collections are returned in the results drop down. This makes it very easy to navigate to a different site
Thomas Gorgolione commented
With the new top-level search on the Sharepoint chrome, having the search limited in scope breaks several design rules (e.g. hierarchy), especially when it is used to search within a library.
Currently, we have our own sharepoint-wide search in a custom extension that sits below that section on the page, but it will be confusing with two different searches stacked on top of each other. Our options are to either hide ours or hide Microsofts (via yucky CSS overrides), but hiding Microsofts would also prevent users from searching libraries.
Conversely, we would love to use Microsoft's solution, but it needs to be global for all sites and library pages (and should also have the ability to search for people as well).
If anyone in MS is looking to talk directly to me for feedback, feel free to email me.