force cancel current crawl
-
27-12-2020 - |
Вопрос
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.
Решение 4
I ended up deleting the Search Application and created a new one
Другие советы
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
Не связан с sharepoint.stackexchange