Change sharepoint search scope

Contributor

Hello Comunity,

 

I have the following situation under a hub structure: 

 

**Main hub site - (All Schools)**

 

Other 3 hub sites associated with the previous one mentioned.

School 1
School 2

School 3

Currently, if I search under All schools site, it brings all under school 1, 2 and 3. 
I need the same behavior when searching from school 1, 2 or 3, search all the data across all the other sites, I have PnP access, how can we achieve this?

Thanks 

1 Reply

Hello @felipewltc 

 

you can change the scope in your Microsoft search box:

https://docs.microsoft.com/en-us/microsoftsearch/manage-spo-search-box

 

When you use PnP Modern Search web parts you can define scopes or define the sites direct with the Path: parameter in your search results web part query.

 

Regards, Dave