SPO Site Search returns tenant results instead

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3170466%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3ESPO%20Site%20Search%20returns%20tenant%20results%20instead%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3170466%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3ESearches%20from%20'Search%20this%20site'%20on%20one%20(heavily%20accessed)%20site%20in%20a%20tenant%20returns%20tenant%20results%20(search%20scope%201)%20instead%20of%20just%20site%20results%20(search%20scope%203).%20All%20other%20site%20searches%20work%20as%20expected%2C%20so%20the%20problem%20seems%20to%20be%20with%20this%20site%20only.%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EThe%20page%20source%20shows%20that%20both%20the%20home%20page%20where%20the%20search%20is%20conducted%20and%20the%20'search.aspx'%20results%20page%20both%20have%20'0'%20(should%20be%20'site')%20as%20the%20search%20scope.%20There%20are%20are%20no%20hubs%3B%20the%20results%20page%20shows%20the%20expected%20'Organization'%20option%20but%20the%20results%20are%20identical%20to%20the%20'Search%20this%20site'%20results.%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EThe%20last%20suggestion%20I%20have%20is%20to%20replace%20the%20seattle.master%20(and%20oslo.master)%20with%20'newer'%20versions%20from%20newer%20sites%2C%20but%20I%20have%20a%20feeling%20the%20problem%20is%20somewhere%20else%2C%20possibly%20via%20something%20changed%20on%20or%20added%20to%20the%20home%20page%20-%20although%20I'm%20told%20no-one%20has%20changed%20anything%2C%20including%20any%20Site%20Collection%20or%20Site%20features.%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EApart%20from%20F12%2C%20anyone%20else%20have%20any%20suggestions%20as%20to%20what%20might%20force%20a%20'search%20this%20site'%20to%20jump%20to%20tenant%20results%3F%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3170466%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3ESearch%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3170466%22%20slang%3D%22en-US%22%3ESPO%20Site%20Search%20returns%20tenant%20results%20instead%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3170466%22%20slang%3D%22en-US%22%3E%3CP%3ESearches%20from%20'Search%20this%20site'%20on%20one%20(heavily%20accessed)%20site%20in%20a%20tenant%20returns%20tenant%20results%20(search%20scope%201)%20instead%20of%20just%20site%20results%20(search%20scope%203).%20All%20other%20site%20searches%20work%20as%20expected%2C%20so%20the%20problem%20seems%20to%20be%20with%20this%20site%20only.%3C%2FP%3E%3CP%3EThe%20page%20source%20shows%20that%20both%20the%20home%20page%20where%20the%20search%20is%20conducted%20and%20the%20'search.aspx'%20results%20page%20both%20have%20'0'%20(should%20be%20'site')%20as%20the%20search%20scope.%20There%20are%20are%20no%20hubs%3B%20the%20results%20page%20shows%20the%20expected%20'Organization'%20option%20but%20the%20results%20are%20identical%20to%20the%20'Search%20this%20site'%20results.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20last%20suggestion%20I%20have%20is%20to%20replace%20the%20seattle.master%20(and%20oslo.master)%20with%20'newer'%20versions%20from%20newer%20sites%2C%20but%20I%20have%20a%20feeling%20the%20problem%20is%20somewhere%20else%2C%20possibly%20via%20something%20changed%20on%20or%20added%20to%20the%20home%20page%20-%20although%20I'm%20told%20no-one%20has%20changed%20anything%2C%20including%20any%20Site%20Collection%20or%20Site%20features.%26nbsp%3B%3C%2FP%3E%3CP%3EApart%20from%20F12%2C%20anyone%20else%20have%20any%20suggestions%20as%20to%20what%20might%20force%20a%20'search%20this%20site'%20to%20jump%20to%20tenant%20results%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3170466%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESearch%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Regular Contributor

Searches from 'Search this site' on one (heavily accessed) site in a tenant returns tenant results (search scope 1) instead of just site results (search scope 3). All other site searches work as expected, so the problem seems to be with this site only.

The page source shows that both the home page where the search is conducted and the 'search.aspx' results page both have '0' (should be 'site') as the search scope. There are are no hubs; the results page shows the expected 'Organization' option but the results are identical to the 'Search this site' results. 

The last suggestion I have is to replace the seattle.master (and oslo.master) with 'newer' versions from newer sites, but I have a feeling the problem is somewhere else, possibly via something changed on or added to the home page - although I'm told no-one has changed anything, including any Site Collection or Site features. 

Apart from F12, anyone else have any suggestions as to what might force a 'search this site' to jump to tenant results? 

 

2 Replies

@Andrew Warland hi Andrew i can see no one got back to you on this.. we're seeing the same issue this morning.. did you get any resolution?

thanks, 

 

Andy

@muiraaah Hi Andy, no one ever replied to this. I wrote two related blog posts about this
https://andrewwarland.wordpress.com/2022/02/06/how-the-search-scope-returns-search-results-in-sharep...
https://andrewwarland.wordpress.com/2022/02/14/factors-that-can-affect-search-outcomes-in-sharepoint
There are a number of checks you can make (as described in the posts). In this particular case, the problem was a combination of issues. Only one site in the (large) tenant has this problem, but it's the primary site. All newly created sites work correctly. I think the answer would be to run the script (described in my posts) that re-sets the searchScope just for that specific site. Unfortunately I don't have access to do that with this particular organisation. Let me know if you can try that option.
Andrew