Introduction:
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,
- Create a domain user accounts
- Create a Search service application
- Configure the Search service application
- 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.
- Administration database
- Analytics Reporting Database
- Crawl Database
- 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
- #Variables Declaration
- $ContentSourceName= "Local SharePoint sites"
- $ContentSourceType="SharePoint"
- $ContnetSourceURL="http://gowtham.sharepoint.com"
-
- #Get the search service application
-
- $SearchSA = Get-SPEnterpriseSearchServiceApplication #-Identity "Search Service Application -gowtham"
-
-
- $ContentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $SearchSA | where {$_.Name -eq $ContentSourceName}
- if ($ContentSource)
- {
- write-host "Content Source Name already available!" -f Red
- exit
- }
-
- #New content source
- $ContentSource = New-SPEnterpriseSearchCrawlContentSource -SearchApplication $SearchSA -Type $ContentSourceType `
- -name $ContentSourceName -StartAddresses $ContnetSourceURL -MaxSiteEnumerationDepth 0
-
- write-host "Content Source has been created!" -f Green
-
- #use below script to delete the content source in sharepoint
- #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: