cannot see files in document library in search results sharepoint

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. 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

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.

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

Advertisements
Advertisements

Query 0 Server Not Responding – Event ID 2587

Query 0 Server Not Responding – Event ID 2587

There is an error “Query 0 Server Not Responding – Event ID 2587” in my sharepoint server.

SERVER1:
Windows 2008 R2 (x64)
SharePoint 2010

SERVER2:
Windows 2008 R2 (x64)
SQL 2008

Services running on SERVER1: (none as localsystem, localservice, networkservice)

SharePoint 2010 Administration (started/auto)

SharePoint 2010 Timer (started/auto)

SharePoint 2010 Tracing (started/auto)

SharePoint 2010 User Code Host (stopped/disabled)

SharePoint 2010 VSS Writer (stopped/manual)

SharePoint Foundation Search V4 (started/manual)

SharePoint Server Search 14 (started/manual)

Search/indexing is not working, and in return, backups are failing claiming

Failure Message Object Query-0 (D: on SERVER1) failed in event On Backup

Search Service Application reports:

Index Partition - 0 - SERVER2Search_Service_Application_PropertyStoreDB_9a482efd99954748a062952a3d2617d7
Query Component 0 SERVER1 Not Responding

System Event Log on SERVER1 reports:

Event ID 2587
The following conditions are currently affecting index propagation to this server for search service application 'Search Service Application':
1. Query 0, catalog Main: failing to copy index files from crawl component 0 for 1490 minutes. Access is denied. 0x80070005
2. Query 0 is not being automatically disabled because the minimum number of ready query components per partition is 2

Resolution:

  • Please try to disconnect the query server from the search topology
  • stop the Search service in central admin, clear the index files in the query server.
  • start the search service instance using Start-SPServiceInstance PowerShell.

Run the following PowerShell to reset the Query server:

$ssa = Get-SPEnterpriseSearchServiceApplication -Identity "SSAName"
$queryComponents = $ssa | Get-SPEnterpriseSearchQueryTopology -Active | Get-SPEnterpriseSearchQueryComponent
$component = $queryComponents | where {$_.ServerName -eq "QueryServerName" }
$component.Recover()