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?
@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.
We should be able to choose if the search scope is the site or the hub. And also People Results should be there.
This is an absolut must have. As a public institution with thousends of users, we cannot afford to search in different sites!
We too need this ability. We created a new communications site to replace our classic tenant root site as a homepage for our intranet. Users expect the search to be global but aren't finding what they are looking for because they don't know they have to broaden the scope after searching by clicking "Organization>" It would be great if the search could be the same as the one on the Office.com page. and there are some departments where users wanted to search on global scope instead of Current Site Search.
This is really required, for communicate site it doesnt make sense to search locally
We need this ability too. We have just created a new communications hub site to replace our classic tenant root site as a homepage for our intranet. Users expect the search to be global but aren't finding what they are looking for because they don't know they have to broaden the scope after searching by clicking "Organization>" It would be great if the search could be the same as the one on the Office.com page.
We are currently looking at building out our new intranet on Sharepoint Online. We may have multiple hubs in our new intranet (e.g. Corporate hub, People hub, Finance hub, etc.) yet it will be the intranet homepage that people expect to be able to search EVERYTHING. So although in most cases a Local search will be expected, for an intranet homepage we should really be able to do a global search - INCLUDING people results.
Donia Strand commented
For us, it would be most useful to start off with the local search results - if someone is looking for an HR document in the HR site, best for the search to keep them there - BUT, if the user did not find what they need, perhaps they could be presented with an option to "Search All SharePoint Sites" (SharePoint Home Search)
We have materials related to the similar subject on all site collections, also in local network. we have configure the hybrid search to surface the local network search results on SP online search center. So it will be very helpful to enable global search by default, or have settings to change
Örjan Andersson commented
My thoughts and question around this topic can be found here. https://techcommunity.microsoft.com/t5/SharePoint/Using-search-in-modern-sites/m-p/176889
Adding the text here:
Without getting a complete answer (what the future will bring) I can see from earlier posts that people have asked if it’s possible to change/configure default search in a modern Communication Site? Example of this would be to send the query to a custom search page. After search input you are redirected to a standard search page (_layouts/15/search.aspx). Will there be any support for changing this behavior? I have tried with different search settings, both on Site and SiteCollection level without any result.
Reason for my question is that I have a customer that have invested heavily within the Enterprise Search templates. There is a lot of query rules, display templates, search verticals and refinements. From a classic Team Site there is an option to search (via search input box) for Everything (it's also possible to configure this URL on tenant level to a custom search center).
Customer would like to use the new communication site as a landing page but it’s important to keep the classic Enterprise Search as default for “site” search, also from modern sites (or optionally).
With this option it would be much easier to combine a common search behavior when you have good mix of classic and modern team/collaboration sites. Is there perhaps a plan to “deprecate” the classic Enterprise Search functionality and this is the reason for not being able to reconfigure the search?
Would an option be to build a custom header (with help of SharePoint Framework Extension) that implements a custom search box? Follow up question is how you easiest could remove the original search box in that case? Most flexible solution would be to implement support for the search box to make use of the search settings like the classic input search.
Any input around this topic would be appreciated :-)
In the olden days of SharePoint, we could configure where the search box sent you for results. More often than not, it was reconfigured to send you to the Enterprise search center instead of osssearchresults.aspx - because a broader resultset often helps. A user might not see the difference from a search box on a site vs a search box on SharePoint Home or Office.com.
Some times we scoped results to the site, with a clear indication to see all, sometimes we boosted content from the originating site.
Of course in the olden days of pre-modern we also had a search box above each library/list, which clearly was scoped to this library/list.
The ideal scenario would be to allow us to use the search settings per site to set where we want the search to be sent to - and having the default as is just fine. Now the search setting just sits there being totally ignored by modern search.
You might think the "Search this site" help text in the box is super obvious, but there is no good way to expand the search from local to global if a user wants this - sending the user to SharePoint Home, which is effectively the new Enterprise Search center is quite helpful indeed.
I know this might sound vague, so please let me know if I need to elaborate further.