Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Force stop and then start a full crawl search in SharePoint 2013
WhatsApp
Gowtham Rajamanickam
10y
44.9
k
0
1
25
Blog
Steps
Start your windows PowerShell on your computer.
Right click and select Run as administrator option.
Paste the below script on the PowerShell window and click the enter button.
Check your SharePoint site Feature will activated successfully
The script below walks through each content source and does the following:
Checks whether the crawl status is set to “Idle”
If the content source is currently involved in a crawl activity, stop the activity and wait until the status changes back to Idle
If the content source is Idle, then start a full crawl
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication
"Search Service Application"
| ForEach-Object {
if
($_.CrawlStatus -ne
"Idle"
)
{
Write-Host
"crawl stooping currently for content source $($_.Name)..."
$_.StopCrawl()
do
{ Start-Sleep -Seconds 1 }
while
($_.CrawlStatus -ne
"Idle"
)
}
Write-Host
"Full crawl started for content source $($_.Name)..."
$_.StartFullCrawl()
}
Run the script and following script if you want to display the crawl status of all content sources on your farm:
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication
"Search Service Application"
| select Name, CrawlStatus
Force stop and then start a full crawl search in sharepoint 2013
People also reading
Membership not found