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:
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?
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.