Earlier in SP2010 we had an option of amending the search topology in the central Administration itself. But in SP2013 you need to amend the topology through SharePoint PowerShell alone.
In My Scenario I have 2 WFE, 1 APP, 1 for Crawl and 1 for Index.
First of all we need to start the Search Service in the necessary server. So I need to start the service in the APP1, Crawl and Index server.
$hostA = Get-SPEnterpriseSearchServiceInstance -Identity "App1"
$hostB = Get-SPEnterpriseSearchServiceInstance -Identity "Crawl"
$hostC = Get-SPEnterpriseSearchServiceInstance -Identity "Index"
Start-SPEnterpriseSearchServiceInstance -Identity $hostA
Start-SPEnterpriseSearchServiceInstance -Identity $hostB
Start-SPEnterpriseSearchServiceInstance -Identity $hostC
Check the status of SSA after started
Get-SPEnterpriseSearchServiceInstance -Identity $hostA
Get-SPEnterpriseSearchServiceInstance -Identity $hostB
Get-SPEnterpriseSearchServiceInstance -Identity $hostC
Creating new topology in the existing service application which we have in the farm
$ssa = Get-SPEnterpriseSearchServiceApplication
$newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa
Creating the necessary components in the new topology. Here I am creating the Admin Component, Analytic Component will be in APP Server
Crawl and Content Processing will be in Crawl Server.
Query processing and Index component will be in Index server.
New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostC
New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostC -IndexPartition 0
Activating the topology which we created.
Set-SPEnterpriseSearchTopology -Identity $newTopology
Get the list of topologies which are available in the search serviceapplication. In my scenario the existing one will be available and that will be deactivate after executing the above mentioned Set-SpEnterpriseSearchTopology.
Get-SPEnterpriseSearchTopology -SearchApplication $ssa
In the output of above command just make a note of inactive topology id.
Remove-SPEnterpriseSearchTopoly -Identity "InactiveToplogy ID" -SearchServiceApplication $ssa
That's it now you can check the component status in the central adminstration -> Manager Service Application -> Search Service Application.
Thanks.
சிவசங்கரன் (Shivashankaran)
In My Scenario I have 2 WFE, 1 APP, 1 for Crawl and 1 for Index.
First of all we need to start the Search Service in the necessary server. So I need to start the service in the APP1, Crawl and Index server.
$hostA = Get-SPEnterpriseSearchServiceInstance -Identity "App1"
$hostB = Get-SPEnterpriseSearchServiceInstance -Identity "Crawl"
$hostC = Get-SPEnterpriseSearchServiceInstance -Identity "Index"
Start-SPEnterpriseSearchServiceInstance -Identity $hostA
Start-SPEnterpriseSearchServiceInstance -Identity $hostB
Start-SPEnterpriseSearchServiceInstance -Identity $hostC
Check the status of SSA after started
Get-SPEnterpriseSearchServiceInstance -Identity $hostA
Get-SPEnterpriseSearchServiceInstance -Identity $hostB
Get-SPEnterpriseSearchServiceInstance -Identity $hostC
Creating new topology in the existing service application which we have in the farm
$ssa = Get-SPEnterpriseSearchServiceApplication
$newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa
Creating the necessary components in the new topology. Here I am creating the Admin Component, Analytic Component will be in APP Server
Crawl and Content Processing will be in Crawl Server.
Query processing and Index component will be in Index server.
New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostC
New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostC -IndexPartition 0
Activating the topology which we created.
Set-SPEnterpriseSearchTopology -Identity $newTopology
Get the list of topologies which are available in the search serviceapplication. In my scenario the existing one will be available and that will be deactivate after executing the above mentioned Set-SpEnterpriseSearchTopology.
Get-SPEnterpriseSearchTopology -SearchApplication $ssa
In the output of above command just make a note of inactive topology id.
Remove-SPEnterpriseSearchTopoly -Identity "InactiveToplogy ID" -SearchServiceApplication $ssa
That's it now you can check the component status in the central adminstration -> Manager Service Application -> Search Service Application.
Thanks.
சிவசங்கரன் (Shivashankaran)
No comments:
Post a Comment