# cannot see files in document library in search results sharepoint

- Link: https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/
- Published: 2020-06-28T11:52:20+05:30
- Author: Deviprasad Panda

User cannot see files in document library and sharepoint 2019 search not returning
results from specific document library.I came across this search error where user
is trying to search documents selecting the option “search in same site” instead
of “all sites” from search box and sharepoint search not returning results. User
can find documents from other library with in same site but cannot see files in 
specific document library. The first point comes to mind for search error is [content not crawled](https://sharepointtechnicalsupport.com/map-crawled-property-to-managed-property-sharepoint-2019/).
Indexing not done for this situation and sharepoint search not working. As per my
investigation I found the setting of the library as below.

 Advertisements

![cannot see files in document library sharepoint search](https://i0.wp.com/sharepointtechnicalsupport.
com/wp-content/uploads/2025/06/eff1f-cannot-see-files-in-document-library-sharepoint-
search.jpg?resize=584%2C640&ssl=1)

By default SharePoint only crawls major versions of files and draft items are only
viewable by their creators. SharePoint is behaving as expected out of box.Draft 
items are not crawled in SharePoint for which user cannot see files in document 
library.

 Advertisements

## Resolve search result error for document library as below

 * Navigate to Document Library Settings -> Versioning Settings -> Draft Item Security.
 * Select option “Any user who can read items”.
 * This will allow all users to see draft items including the crawling account.
 * Else you need to select “Create major versions” option or can publish the documents
   as major versions if want to get those documents in search result as per client
   wish.
 * Reference link [Click Here](https://support.microsoft.com/en-us/help/2304855/draft-items-are-not-crawled-in-sharepoint).

Applying above settings you will find document not showing in search sharepoint 
will start showing result.

 Advertisements

 Advertisements

### Share this:

 * [  X ](https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/?share=twitter)
 * [  Facebook ](https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/?share=facebook)
 * [  WhatsApp ](https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/?share=jetpack-whatsapp)
 * [  Email ](https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/?subject=%5BShared%20Post%5D%20cannot%20see%20files%20in%20document%20library%20in%20search%20results%20sharepoint&body=https%3A%2F%2Fsharepointtechnicalsupport.com%2F2020%2F06%2F28%2Fcannot-see-files-in-document-library-in-search-results-sharepoint%2F&share=email)
 * [  Telegram ](https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/?share=telegram)
 * [  LinkedIn ](https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/?share=linkedin)
 * [  Tumblr ](https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/?share=tumblr)
 * [  Pinterest ](https://sharepointtechnicalsupport.com/2020/06/28/cannot-see-files-in-document-library-in-search-results-sharepoint/?share=pinterest)

### Like this:

Like Loading…

### _Related_
