Forum Discussion
AndrewWarland
Feb 15, 2022Iron Contributor
SPO Site Search returns tenant results instead
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 expe...
muiraaah
Mar 17, 2022Copper Contributor
AndrewWarland 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
- AndrewWarlandMar 17, 2022Iron Contributormuiraaah 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-sharepoint/
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