Why items are missing from SharePoint search results
SharePoint search only shows people the content they have permission to see, so first check that the person can open the item. If they can, the cause is usually a setting that keeps content out of the search index: the site's "Allow this site to appear in Search results" option, a library's "Allow items from this document library to appear in search results?" option, the library's Draft Item Security, or the site's ASPX page indexing option. Fix the setting, then reindex the site or library so the content is picked up at the next scheduled crawl.
Microsoft describes the problem for SharePoint Online: "When a user tries to search a site in SharePoint Online, items may be missing from the search results." It notes that "This issue may occur even though the site was crawled and indexed by the Search service, and the user has permissions to access the resource by using a search query." Microsoft's cause is broad: "There are various reasons why expected results may be missing that are related to crawl latency or settings in SharePoint Online."
Everything on this page applies to SharePoint in Microsoft 365.
| What is missing | Most likely cause | Fix |
|---|---|---|
| Content one person cannot find but others can | The person does not have permission to the item | Check their permissions |
| Everything on a site | Allow this site to appear in Search results is set to No | Set it to Yes |
| Everything in one library | Allow items from this document library to appear in search results? is set to No | Set it to Yes |
| Draft versions of files | Draft Item Security limits who can see drafts, including the crawl account | Set it to Any user who can read items |
| ASPX pages on a site or subsite with its own permissions | The ASPX page indexing option skips Web Parts where permissions differ | Always index all Web Parts on this site, or inherit permissions |
| The values in one column | The column is excluded in Searchable columns | Clear the Excluded box |
| Content changed in the last little while | Crawl latency | Wait for the next scheduled crawl, or reindex |
Search only shows what each person can open
Microsoft: "Search results are always security trimmed, so users will only see content they have permission to see. The search settings only define what content is included in the search index."
So when one person cannot find a file that others can, check that person's access before you change any search setting. Microsoft also notes that permissions on lists, sites, views and Web Parts control what people see in search. SharePoint 'Access Denied' and 'You Need Permission' covers Check Permissions.
Check 1: the site's search setting
By default, the content of a site can appear in search results. If the site setting is turned off, Microsoft notes that the search settings for the site's lists, libraries, ASPX pages and columns "wouldn't have any effect", so check this one first.
- On the site, select Settings, and then select Site settings. If you don't see Site settings, select Site information, and then select View all site settings.
- Under Search, select Search and offline availability.
- Make sure that Allow this site to appear in Search results is set to Yes.
Microsoft: "After the setting is set to Yes, the site should be indexed during the next scheduled crawl." You need the Manage Permissions permission, which the site's Owners group has. Microsoft's troubleshooting article also gives the direct address of the same option: <site_name>/_layouts/srchvis.aspx.
Check 2: the library's search setting
By default, every list and library includes all of its items in search results.
- Go to the library that is missing from search results.
- Select Settings, then Library settings.
- Select Advanced settings.
- Make sure that Allow items from this document library to appear in search results? is set to Yes.
Microsoft: "After the setting is set to Yes, the library should be indexed during the next scheduled crawl." This setting needs the Manage Lists permission. Edit has it and Contribute does not; SharePoint Edit vs Contribute explains the difference.
Check 3: draft items
Microsoft's support article for this case is short: "Microsoft SharePoint is not crawling the draft items to return in search results." The fix is in the library's versioning settings:
- In the library, select Settings, then Library settings.
- Select Versioning settings.
- Under Draft Item Security, select Any user who can read items.
Know what this changes before you select it. Microsoft: "This will allow all users to see draft items including the crawling account." Managing version history in SharePoint covers the other versioning settings.
Check 4: ASPX pages on sites with their own permissions
Pages are a common gap. Microsoft: "By default, when a Web Part displayed on an ASPX page uses information from a list or library that contains restricted permissions, also known as fine-grained permissions, none of the content in any of the ASPX pages on the site is included in search results."
The option is under Settings, Site settings, Search and offline availability, in the Indexing ASPX Page Content section:
| Option | What Microsoft says it does |
|---|---|
| Do not index Web Parts if this site contains fine-grained permissions | "When permissions of the ASPX page are different from the parent site, no content on the site appears in search results." |
| Always index all Web Parts on this site | "Show content of all ASPX pages on the site in search results regardless of permissions." |
| Never index any Web Parts on this site | "Hide content of all ASPX pages on the site from search results regardless of permissions." |
For subsites, Microsoft: "If a subsite on the site collection doesn't inherit permissions, .aspx pages won't appear in the search results. To resolve this issue, set the search visibility option in Srchvis.aspx to Always index all Web Parts on this site. Additionally, you may set the subsite to inherit permissions from the parent site."
Read the second option's description again before you choose it. Pages that show content from a restricted list will then appear in search "regardless of permissions", so inheriting permissions can be the safer fix.
Check 5: excluded columns
A single column can be excluded from the index while the rest of the item is searchable.
- On the site, select Settings, then Site settings.
- Under Search, select Searchable columns.
- In the Excluded Columns from Search Indexing section, clear the Excluded box next to the column.
Microsoft: "The option is only visible for sites with the classic publishing feature enabled." On other sites, go to <Site URL>/_layouts/15/NoCrawlSettings.aspx. Only columns that belong to the current site are listed.
Reindex a site, library or list
SharePoint crawls content on its own schedule. Microsoft: "In SharePoint, content is automatically crawled based on a defined crawl schedule. The crawler picks up content that has changed since the last crawl and updates the index." A reindex marks content as changed so the next crawl picks all of it up.
Reindex a site:
- On the site, select Settings, and then select Site settings. If you don't see Site settings, select Site information, and then select View all site settings.
- Under Search, select Search and offline availability.
- In the Reindex site section, select Reindex site.
- A warning appears. Check the box before "Please check this box to acknowledge and agree to the statement above." Select Reindex site again to confirm.
Reindex a library or list:
- Go to the list or library.
- Select Settings, and then choose Library Settings or List Settings.
- Under General Settings, choose Advanced settings. If you don't see the Settings page, choose More library settings or More List settings.
- Scroll down to Reindex Document Library or Reindex List, and select the button. Select it again to confirm.
In both cases the content is reindexed during the next scheduled crawl. Microsoft gives no fixed time for that. Its caution: "Reindexing a site can cause a massive load on the search system. Don't reindex your site unless you've made changes that require all items to be reindexed." Reindex the library rather than the whole site where you can. Changes to the search schema also need a reindex, because, as Microsoft puts it, "the crawler won't automatically reindex the site"; Advanced search in SharePoint Online covers the schema side.
Archived files and search
Files archived with Squirrel leave a stub in the library that keeps the file's metadata and dates and inherits the library's permissions, so the item still appears in the library and is indexed like any other SharePoint item. SharePoint archiving with easy search and retrieval covers how archived files stay findable.
Frequently asked questions
Why can't I find a file in SharePoint search?
Check first that you can open the file, because search only shows content you have permission to see. If you can, the site or library may be excluded from search, the file may be a draft that the crawl account cannot see, or it may not have been crawled yet.
Why does search show a file to my colleague but not to me?
Search results are security trimmed. Your colleague has permission to the file and you do not. Ask the site owner to check your permissions.
How do I make a SharePoint site appear in search results?
Select Settings, then Site settings, then Search and offline availability, and set Allow this site to appear in Search results to Yes. The site is indexed during the next scheduled crawl.
How do I make a document library searchable?
In the library, select Settings, then Library settings, then Advanced settings, and set Allow items from this document library to appear in search results? to Yes.
Why are draft documents not in search results?
Microsoft's article says SharePoint is not crawling draft items. In the library's Versioning settings, setting Draft Item Security to Any user who can read items lets all users, including the crawling account, see drafts.
Why are SharePoint pages missing from search?
By default, if a Web Part on an ASPX page uses information from a list or library with fine-grained permissions, none of the ASPX pages on the site are included in search results. Change the Indexing ASPX Page Content option, or set the subsite to inherit permissions.
How long does SharePoint take to index new content?
Microsoft does not give a time. Content is crawled on a defined schedule, and changed or reindexed content is picked up during the next scheduled crawl.
Should I reindex my whole site?
Only when every item needs it. Microsoft warns that reindexing a site can cause a massive load on the search system. Reindex the affected library or list instead where you can.
Related reading
- Advanced search in SharePoint Online: schema and refiners - crawled and managed properties, and why schema changes need a reindex.
- SharePoint 'Access Denied' and 'You Need Permission': fixes - checking what a person can open.
- SharePoint Edit vs Contribute: permission levels compared - Manage Lists, the permission behind library settings.
- SharePoint permission levels explained - the default levels and inheritance.
- Managing version history in SharePoint - versioning settings for libraries.
- SharePoint archiving with easy search and retrieval - stubs, search and restore for archived files.
Mark Smith co-founded SmiKar Software in 2015 and has spent the past decade helping organisations solve Microsoft 365 data management challenges. He works with the SmiKar team to build solutions for SharePoint archiving, storage optimisation, governance and compliance, supporting customers from growing businesses through to Fortune 500 enterprises.
More about SmiKar


