Forum Discussion
Anonymous
Jan 18, 2018Changing search bar on Comm site to search entire Tenant?
Can you somehow make the search bar search the entire tenant similar to the SharePoint Portal page search? I want to have my "Intranet" landing page search bar search the same across everything without having to change the drop down after hitting search. Probably not possible but one can hope :(.
Hi Deleted - unfortunately today you cannot change the search scope natively within the site setup. However, I saw some time back a similar question was posed and the workaround suggested was to create a SPFx search box client side web part to redirect from modern Site Page to classic search results page. Here is the article explaining how it's done: https://blog.velingeorgiev.com/sharepoint-framework-react-search-box-client-side-web-part
By no means is it the clean modern look and feel, but it may unblock you until the modern experience ships.
3 Replies
Sort By
- Clifford KennedyIron Contributor
Hi Deleted - unfortunately today you cannot change the search scope natively within the site setup. However, I saw some time back a similar question was posed and the workaround suggested was to create a SPFx search box client side web part to redirect from modern Site Page to classic search results page. Here is the article explaining how it's done: https://blog.velingeorgiev.com/sharepoint-framework-react-search-box-client-side-web-part
By no means is it the clean modern look and feel, but it may unblock you until the modern experience ships.
- AnonymousThanks, this should at least give me an option if it ends up being a requirement. Thanks!
- Geir-Magnus Pettersen
Microsoft
Its correct that you can not set the default scope to global for a teamsite/commsite currently. Please also see this thread that is discussing around the same issue: https://techcommunity.microsoft.com/t5/SharePoint/Scoping-of-search-in-team-site-communication-sites/m-p/210905#M19278
As a possible mitigation, instead of redirecting to the classic search you could redirect this url:<YOURTEAMSITE>/_layouts/15/search.aspx?q=<startquery>
This should take you to your upscoped search results page.