Is there a way to fully cancel a search crawl via Powershell or Central Administration? I have a current crawl going and it is sitting at 1209:04:57 for the duration. It has been in the Stopping
status for over 2 hours.
-
Did you resolve the issue @kevorski? – Frank H Jul 15 '17 at 20:29
Stop the crawl for all content sources
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {
If($_.CrawlStatus -ne "Idle")
{
Write-Host "Stopping crawl on Content source $($_.Name)..."
$_.StopCrawl()
While ($_.CrawlStatus -ne "Idle")
{
Write-Host "Waiting to crawl to be stopped..." -f DarkYellow
sleep 3
}
write-host "Crawl Stopped Successfully!" -f DarkGreen
}
else
{
write-host "Crawl Status of the Content source '$($_.Name)' is Idle!" -f DarkGreen
}
}
Try restarting the search service.
go to services
restart "SharePoint Server Search 14" service
If you got multiple servers with search service you need to do this on each server.
try this code
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object { If($_.CrawlStatus -ne "Idle") { Write-Host "Stopping crawl on Content source $($_.Name)..." $_.StopCrawl() While ($_.CrawlStatus -ne "Idle") { Write-Host "Waiting to crawl to be stopped..." -f DarkYellow sleep 3 } write-host "Crawl Stopped Successfully!" -f DarkGreen } else { write-host "Crawl Status of the Content source '$($_.Name)' is Idle!" -f DarkGreen } }
if this is not working try this
net stop OSearch14
net start OSearch14
-
-
-
When I attempt to start the service it tells me the requested service has already been started – kevorski Jul 13 '17 at 20:29
-
-