How to Enable/Disable Continuous Crawls in SharePoint 2013 using Powershell

In this blog, you will see how to Enable/Disable the continuous crawls in SharePoint 2013 using Powershell. 

######### To Enable Continuous Crawls in SharePoint 2013 #########

  1. $ssa = Get-SPEnterpriseSearchServiceApplication  
  2. $contentsource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint sites"  
  3. Set-SPEnterpriseSearchCrawlContentSource -Identity $contentsource -EnableContinuousCrawls $True  
######### To Disable Continuous Crawls in SharePoint 2013 ######### 
  1. $ssa = Get-SPEnterpriseSearchServiceApplication  
  2. $contentsource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint sites"  
  3. Set-SPEnterpriseSearchCrawlContentSource -Identity $contentsource -EnableContinuousCrawls $False  
Ebook Download
View all
Learn
View all