Sharepoint Server 2019 subsite search results broken

Bradley Kean 1 Reputation point
2021-08-31T01:01:24.2+00:00

I have a subsite Team Site. When I search in it, I get "We couldn't find what you're looking for here." and no search results. But if I change the search filter to "All sites", I successfully get the search results for the pages in that subsite. Why does "All sites" work, but the subsite can't successfully search itself?

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,864 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Allen Xu_MSFT 13,796 Reputation points
    2021-08-31T06:39:53.023+00:00

    Hi @Bradley Kean ,

    I couldn't reproduce this issue on my end. I can get the pages in the subsite form the search results no matter if the filter is set to All sites or subsite only. To narrow down this issue, please check the following:

    1. Go to Site Settings of your subsite > Search > Search and offiline availability > Make sure "Allow this site to appear in search results?" has been set to "Yes".
    2. Make sure search filter has been set to subsite/Files/All file types when searching.
    3. Are all pages in the subsite cannot be shown in the search results if set the filter to the subsite?
    4. Go to Site Settings of your subsite > Search > Search and offiline availability > Reindex site, then go to search service application in the Central Administration and start a full crawl. Search again in the subsite after the full crawl is completed.

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.