Restricted SharePoint Search Ignores a Site: Root Cause and Fix
🔍 WiseChecker

Restricted SharePoint Search Ignores a Site: Root Cause and Fix

You search for a document in SharePoint but the results do not include content from a specific site. This happens even when you have access to that site and can browse its contents directly. The root cause is usually a search configuration setting that restricts which sites the search index crawls. This article explains why SharePoint search ignores a restricted site and provides the steps to fix the issue.

Key Takeaways: Fix Restricted SharePoint Search Ignoring a Site

  • SharePoint admin center > Search > Search Schema: Managed properties control what content appears in search results. Check that the site content is indexed correctly.
  • SharePoint admin center > Search > Result Sources: A result source can limit search results to specific sites. Remove or modify the restriction.
  • SharePoint admin center > Search > Crawl Log: The crawl log shows whether the site was successfully crawled. Use it to identify crawl errors.

ADVERTISEMENT

Why SharePoint Search Ignores a Specific Site

SharePoint search uses a crawl process to index site content. The search index stores a copy of the content so that queries can return results quickly. If a site is configured as restricted, the search crawler may skip it entirely. This restriction can be set at the site collection level, the service application level, or through a result source. The most common causes are:

Site Collection Search Configuration

Each site collection has a setting called “Allow this site to appear in search results.” If this setting is turned off, the search crawler ignores the site. This setting is found in the site settings under Search and offline availability.

Result Source Restrictions

A result source is a query rule that limits where search results come from. For example, a result source can be set to only return results from a specific site path or a particular content source. If the ignored site does not match the rule, its content will not appear.

Crawl Permissions

The search crawler runs under the default content access account. If this account does not have read permission on the site, the crawler cannot access the content. The site will appear in the crawl log as “Access Denied” and will not be indexed.

Steps to Fix Search Ignoring a Site

Use the following steps to identify and resolve the issue. Perform each step and test search after each change.

  1. Check the site’s search visibility setting
    Go to the site that is being ignored. Click the gear icon and select Site Information. Click View all site settings. Under Search, click Search and offline availability. Make sure the option “Allow this site to appear in search results” is set to Yes. Click OK.
  2. Review the crawl log for errors
    In the SharePoint admin center, go to Search and then Crawl Log. Enter the URL of the ignored site. Look for entries with status “Access Denied,” “Crawl Error,” or “Not Crawled.” If you see “Access Denied,” proceed to step 3. If you see “Not Crawled,” proceed to step 4.
  3. Grant the default content access account read permission
    In the SharePoint admin center, go to Search and then Search Administration. Under Crawl Rules, click Content Access Account. Note the account name. Go to the site that is being ignored. Add that account as a visitor (read permission). Wait for the next incremental crawl or start a full crawl manually.
  4. Check result sources in search settings
    In the SharePoint admin center, go to Search and then Result Sources. Look for any result source that restricts results to a specific site path or site collection. If you find one, edit it. Remove the restriction or add the ignored site’s URL to the allowed paths. Save the change.
  5. Verify the content source includes the site
    In the SharePoint admin center, go to Search and then Content Sources. Select the content source that should crawl the site. Click Edit. Under Start Addresses, confirm the site URL is listed. If not, add it. Click OK. Start a full crawl for that content source.
  6. Check managed property mappings
    In the SharePoint admin center, go to Search and then Search Schema. Find the managed property that contains the site’s content (for example, “Title” or “Body”). Click the property name. Under Mappings to crawled properties, ensure the correct crawled property is mapped. If not, add the mapping and reindex the site from the site settings page.

ADVERTISEMENT

If Search Still Ignores the Site After the Main Fix

Sometimes the issue persists even after following all steps. Below are additional failure patterns and their fixes.

Search Results Show Old Content from the Site

The search index may have a stale copy of the site. This happens when the site was crawled once but changes were not reindexed. Go to the site settings, click Search and offline availability, and click Reindex site. Then request a full crawl of the content source.

Site Appears in Search Results but Only for Site Administrators

This indicates that the search results are being trimmed by security. The search crawler uses the default content access account to read content. If that account has access, the content is indexed. However, when a user searches, SharePoint checks the user’s permissions. If the user does not have read access to the site, the results are hidden. Verify that the users who need to find the site have at least read permission.

Custom Search Web Part Shows No Results for the Site

A custom search web part may have a query that restricts results. Edit the search web part. In the query builder, check the “Query text” box. If it contains a path restriction, remove it or add the site’s URL. Also check the “Result Sources” dropdown in the web part properties. Ensure it is set to “All Sites” or a source that includes the site.

Site Search Visibility vs Result Source: Key Differences

Item Site Search Visibility Result Source
Scope Single site collection Multiple site collections or content sources
Configuration location Site settings > Search and offline availability Search admin center > Result Sources
Effect on crawl Prevents the crawler from indexing the site Filters results after indexing is complete
User permission required Site owner Search administrator
Fix method Set “Allow this site to appear in search results” to Yes Edit or delete the result source rule

You can now identify why SharePoint search ignores a specific site and apply the correct fix. Start by checking the site’s search visibility setting and the crawl log. If the issue persists, review the result sources and content sources in the search admin center. For a quick verification, use the crawl log to see whether the site was crawled and if any access errors appeared.

ADVERTISEMENT