SharePoint 2013 Search - Content Source


When you are installing the SharePoint 2013 server the SharePoint Configuration wizard will create a Search service application at that time. To verify whether a Search service application exists, go to the central admin and select application management then click Manage service applications the Search service will be available there.

Before we touch the Content Source we will see about how to create a Search Service application in SharePoint 2013.

Please follow the below configurations when you create search service applications,

  1. Create a domain user accounts
  2. Create a Search service application
  3. Configure the Search service application
  4. Configure the Search service application topology

Create Search Service application:

Go to the Central administration then click on Application Management then click the “Manage Service Applications".

Click on search service application from new service application list.

Enter all the details and it will take time to complete the process.Once service application has been created check the manage service application page and it look like below,


Then click the newly created service applicaton and it will redirect to the below page of service application to configure the search,

Below databases created by creation of Search service application.

  1. Administration database
  2. Analytics Reporting Database
  3. Crawl Database
  4. Link Database

And the search service application topology should be Right mark in green colour or else try to create a new one.

Content Source:

Create an additional content sources to specify other content to crawl and how the system should crawl that content,Use below Powershell script to create the Content source instead of creating manually,

Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue

  1. #Variables Declaration  
  2. $ContentSourceName= "Local SharePoint sites"  
  3. $ContentSourceType="SharePoint"  
  4. $ContnetSourceURL=""  
  6. #Get the search service application  
  8. $SearchSA = Get-SPEnterpriseSearchServiceApplication #-Identity "Search Service Application -gowtham"  
  11. $ContentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $SearchSA | where {$_.Name -eq $ContentSourceName}  
  12. if ($ContentSource)  
  13. {  
  14.     write-host "Content Source Name already available!" -f Red  
  15.     exit  
  16. }  
  18. #New content source  
  19. $ContentSource = New-SPEnterpriseSearchCrawlContentSource -SearchApplication $SearchSA -Type $ContentSourceType `  
  20.           -name $ContentSourceName -StartAddresses $ContnetSourceURL -MaxSiteEnumerationDepth 0  
  22. write-host "Content Source has been created!" -f Green  
  24. #use below script to delete the content source in sharepoint  
  25. #Remove-SPEnterpriseSearchCrawlContentSource -SearchApplication $SearchSA -Identity $ContentSourceNames  

Below default content source available in sharepoint.

After you created schedule the crawl ,


Yes! Content source successfully created in SharePoint . 

Then create a Search site collection to check  the Content Source and how it is working in search! Happy Learning.....

Read more articles on SharePoint: