The New-SPEnterpriseSearchCrawlContentSource command in Powershell is used to create a new crawl content source for a SharePoint search application.We can view the whole set of parameters and options in this msdn article.
So , when we need to create a SharePoint Search content source, using Powershell, we use the following commands-
$searchapp = Get-SPEnterpriseSearchServiceApplication "Search Service Application" New-SPEnterpriseSearchCrawlContentSource -SearchApplication $searchapp -Type SharePoint -name ContentSourceWithTypeSharePoint -StartAddresses http://localhost:6001/
No comments:
Post a Comment