Search service Application can be created and configured
through Central Administration and PowerShell as well. The below commands
creates the Search Service Application and the associated databases.Further
configuration can be done from Central Administration. The main purpose of
doing this is to create search related databases without GUID’s.
$SSADB = "SearchDB”
$SSAName = "Search Service
Application"
$SVCAcct = "Domain\UserName"
$SSI = Get-SPEnterpriseSearchServiceInstance
-local
1. Start Services search services for SSI
Start-SPEnterpriseSearchServiceInstance
-Identity $SSI
2. Create an Application Pool.
$AppPool = New-SPServiceApplicationPool -Name
$SSAName" AppPool" -account $SVCAcct
3. Create the SearchApplication and set it to a variable
$SearchApp =
New-SPEnterpriseSearchServiceApplication -Name $SSAName -Applicationpool
$AppPool -DatabaseName $SSADB
4. Create search service application proxy
$SSAProxy =
New-SPEnterpriseSearchServiceApplicationProxy -Name $SSAName" ApplicationProxy"
-Uri $SearchApp.Uri.AbsoluteURI
5. Provision Search Admin Component.
Set-SPEnterpriseSearchAdministrationComponent
-SearchApplication $SearchApp -SearchServiceInstance $SSI
The database names would be as below by running the above PowerShell.
Administration Database: SearchDB
Crawl Database: SearchDB_CrawlStore
Property Database: SearchDB_PropertyStore
No comments:
Post a Comment