Wednesday, July 22, 2015

SP2013 Search – Fixing the Search Service after the Index Drive Fills

SP2013 Search – Fixing the Search Service after the Index Drive Fills

In SharePoint 2013 farms when the index drive gets full the search app gets into an unhealthy state and can be difficult to get it to recover. The following steps can be used in order to recover the search application. The most common indicators that the search application has gotten into this unhealthy state (Besides search not working) is the Search Index Partition (in search topology) on the Search Admin Page shows a warning icon. However the following steps can be used to resolve the issue:
1.   First Try to Restart the Search Service (Windows Service):
SP2013WindowsSearchService.png 
2.   If restarting the Search Service does not resolve the issue, try the standard options before moving onto anything more drastic:
    a.   Restart the SharePoint Timer Service
    b.   Reset IIS (Or restart the Application Pool for the Search App)
    c.   Reboot the Server
3.   If none of those options work the best bet is to use the following steps:
4.   Reset the Content Index (To free up space on the Index Drive):
    a.   Using PowerShell use the following command (Note this will require a re-crawl of all content sources)
    b.   $ssa = Get-SPEnterpriseSearchServiceApplication
         i.   This assumes you have only one search application.
    c.   $ssa.Reset($false, $false)
    d.   Note the two parameters, these are optional but they tell SharePoint:
         i.    Not to send search alerts during the reset
         ii.    And not to ignore servers that have non-responsive search applications
 5.   If resetting the Content Index does not work, you can also do the following:
     a.   Clear the Configuration Cache (must be done on each server in the farm to avoid further conflicts)
     b.   Try to Pause/Resume the Search Service (Restarting the Query Component no longer seems to be an option in  SharePoint 2013)
     c.   If the Search Service Pauses but will not resume use the following PowerShell to force it
          i.   $ssa = Get-SPEnterpriseSearchServiceApplication
          ii.   $ssa.ForceResume($ssa.IsPaused())
          iii.   This step could take a while (I have seen it take a few hours)
     d.   Once the above finishes, Reset the Index via PowerShell as documented above in Step 4.
     e.   This step could take a while (depends on the size of the index).
6.   If the Index does not finish resetting within 24hours, restart the SharePoint Server Search 15 service in the services.msc
7.   Check your search application. All should be showing green now for the search topology and the search admin status should be running.
8.   Begin Re-crawling content sources in the order of importance.

 
Hopefully this helps.
Oumaima

Sharepoint Designer 2013, XSLT List View Options ribbon option is not showing

Sharepoint Designer 2013, XSLT List View Options ribbon option is not showing I have an ordinary Wiki Page, also tried making an Article...