Forum Discussion
Search on modern communication site, url issue with "siteall" vertical
- Apr 12, 2019
Setting scope of a teamsite to tenant wide is now available:
Hello,
A MS support engineer told us that we could use the breadcrumb to change the scope. I don't know exactly why we didn't noticed it ourselves. Probably because SharePoint is such a broad term. Maybe a usability test could find out if "All sites" or "All SharePoint sites" would have been better. Another potential issue is that the end user can only broaden the scope from the current site to global, but not the other way around. I assume this is why you opt for current site as default search scope.
We need the global scope because we are slowly migrating to modern sites and pages and almost all of our content is still in old site collections
Ideally it would have leveraged the settings from /_layouts/15/enhancedSearch.aspx?level=sitecol where the site admin can define the search scope for that site (collection).
For custom PowerApps forms in SharePoint lists, it was possible to reuse a traditional SharePoint setting page for a modern feature, so maybe this could be done here as well until a modern settings page is available.
Adding the option to the new Site information side bar could be another option but I guess you don't want to end up cramming all site settings in this side bar.
Our temporary solution right now is to hide the out of the box search box with suggestions and replace it with a basic custom build search box redirecting to the global scoped modern search page.
Hope this helps.
Bart
Thanks for sharing!
So I understand a couple of needs here.
1. Better highlight the possibility of scoping up (Could be by enhancing the breadcrumb, or by visualizing it in some other way).
2. Make it possible to scope back down to site scope. (See that this is missing, there is a cumbersome way today by searching for the site and expanding the site search result and clicking "search this site", but I can see that this is not the way to do it :) )
3. Do you think we would need a setting if the UI was good enough at explaining that you are in the scoped search and you have a good way of scoping back down to the current site?
- bart_vermeerschJul 01, 2018Iron Contributor
Sounds right.
Regarding your question in 3: If one starts from scratch using the new SharePoint paradigm, it would probably makes most sense and would be acceptable to scope to the current site by default, while search in hub sites would scope to the entire hub.
However I think it will take a few years before most of the content is moved from old SP site collections to these new sites. If that's the case it's cumbersome for a user, even if it is more intuitive, to broaden the scope on each search request. So I think a setting would bring most value, in the mean time I would set the default to the entire SharePoint scope. This way the user has only "one" direction to consider: narrowing his search through scope and/or filter.
Maybe Agnes Molnar can confirm, or not?
- AnonymousJul 31, 2018
Is it possible to override this per site collection?
e.g. when user is in tenant.sharepoint.com/sites/global and uses the search then it would by default do global search for whole SharePoint tenant, but when user is in tenant.sharepoint.com/sites/marketingfiles then it would do search only for marketingfiles site collection?
- Geir-Magnus PettersenAug 04, 2018
Microsoft
As long as the site is a modern teamsite / commsite / hubsite you will by default be scoped to search within the documents of the current site. To do a global search you will need to upscope the search results page by clicking the Sharepoint link on top of the search results to do a global search. Currently there are not any way of overriding this, but we are working on improving this after among other feedback on tech community: https://techcommunity.microsoft.com/t5/SharePoint/Scoping-of-search-in-team-site-communication-sites/m-p/215754
Only places you will by default get global search is if you search from Sharepoint home ([TenantName].sharepoint.com/_layouts/15/sharepoint.aspx) or office.com.