SOLVED

SharePoint Online search all pages

%3CLINGO-SUB%20id%3D%22lingo-sub-1856469%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20search%20all%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1856469%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20together%2C%3CBR%20%2F%3EI%20want%20to%20set%20up%20my%20SharePoint%20Online%20site%20so%20that%20the%20search%20will%20search%20all%20SharePoint%20sites%20and%20not%20just%20%22this%20site%22.%3CBR%20%2F%3ECan%20anyone%20help%20me%20here%3F%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20and%20kind%20regards%3CBR%20%2F%3ESilas%20Muth%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1856469%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESearch%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1856832%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Online%20search%20all%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1856832%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F821583%22%20target%3D%22_blank%22%3E%40Silas_Muth%3C%2FA%3E%26nbsp%3BBy%20default%20you%20can%20use%20search%20which%20is%20located%20under%20%3CA%20href%3D%22https%3A%2F%2Fyourtenant%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fyourtenant%3C%2FA%3E.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3Ealso%20you%20can%20connect%20sites%20under%20the%20hub%20site%20and%20the%20search%20trough%20of%20them%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20third%26nbsp%3B%20way%20is%20to%20build%20search%20page%20under%20one%20site%20collection%20and%20use%20PNP%20Modern%20Search%20solution%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft-search%2Fpnp-modern-search%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft-search%2Fpnp-modern-search%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1866353%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Online%20search%20all%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1866353%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244173%22%20target%3D%22_blank%22%3E%40MarekSkalinski%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20found%20exactly%20one%20PowerShell%20command%20that%20fixes%20this%20problem.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%23Set%20Parameters%3C%2FP%3E%3CP%3E%24SiteURL%26nbsp%3B%3D%26nbsp%3B%22%3CA%20href%3D%22https%3A%2F%2Fcrescent.sharepoint.com%2Fsites%2FMarketing%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcrescent.sharepoint.com%2Fsites%2FMarketing%3C%2FA%3E%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%23Connect%20to%20SharePoint%20Online%20site%3C%2FP%3E%3CP%3EConnect-PnPOnline%26nbsp%3B-Url%26nbsp%3B%24SiteURL%26nbsp%3B-UseWebLogin%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%23change%20default%20search%20scope%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESet-PnPSearchSettings%26nbsp%3B-SearchScope%26nbsp%3BTenant%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello together,
I want to set up my SharePoint Online site so that the search will search all SharePoint sites and not just "this site".
Can anyone help me here?

Thank you very much and kind regards
Silas Muth

2 Replies

@Silas_Muth By default you can use search which is located under https://yourtenant.sharepoint.com/_layouts/15/sharepoint.aspx

also you can connect sites under the hub site and the search trough of them

 

The third  way is to build search page under one site collection and use PNP Modern Search solution
https://github.com/microsoft-search/pnp-modern-search

 

best response confirmed by Silas_Muth (Occasional Contributor)
Solution

@MarekSkalinski 

I have found exactly one PowerShell command that fixes this problem.

#Set Parameters

$SiteURL = "https://crescent.sharepoint.com/sites/Marketing"

 

#Connect to SharePoint Online site

Connect-PnPOnline -Url $SiteURL -UseWebLogin

 

#change default search scope

Set-PnPSearchSettings -SearchScope Tenant