SharePoint 2013 – Crawling Hanged to Stopping

Standard

My SharePoint site was extremely slow, receiving timeout errors and all the queries were taking alot of time so the reason was my crawling status was hanged for 2 days on “Stopping”, I tried to investigate and then had to run below script to reset its status to “Idle” and then every thing was fine.

================================================

Get-SPEnterpriseSearchCrawlContentSource -SearchApplication “Search Service Application 1” | ForEach-Object {

     if ($_.CrawlStatus -ne “Idle”)
     {
         Write-Host “Stopping currently running crawl for content source $($_.Name)…”
         $_.StopCrawl()
         do { Start-Sleep -Seconds 1 }
         while ($_.CrawlStatus -ne “Idle”)
     }
}
=========================================

After the crawl state becomes “Idle” then reconfigure the incremental and full crawl and monitor constantly.

Monitoring is the best tool for a SharePoint Administrator.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s