Many times we have scenario where we want to start the incremental crawl after updating some data in SharePoint using power shell, here we can use the below script.
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | where-object { ($_.CrawlStatus -eq "idle") } | foreach { $_.StartIncrementalCrawl() }
Enjoy coding !!!
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | where-object { ($_.CrawlStatus -eq "idle") } | foreach { $_.StartIncrementalCrawl() }
Enjoy coding !!!
No comments:
Post a Comment