Pages

Wednesday, April 10, 2013

Add Search component to search topology



SharePoint 2013 change search tapology. You cannot change it directly so the way to do it to clone it, modified it and make clone active

Let say you want to add admin component to server P11

1.      Clone current Search Topology

$ssa = Get-SPEnterpriseSearchServiceApplication
$active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active
$clone = New-SPEnterpriseSearchTopology -SearchApplication $ssa -Clone –SearchTopology $active

2.      Add new Search component to P11 (server name)

$app2 = Get-SPEnterpriseSearchServiceInstance -Identity "P11"

New-SPEnterpriseSearchAdminComponent -SearchTopology $clone -SearchServiceInstance $app2


3.      Start new search component

Start-SPEnterpriseSearchServiceInstance -Identity $app2


4.      Activate Cloned Topology (this will make clone active)

Set-SPEnterpriseSearchTopology -Identity $clone

Ref: http://stevemannspath.blogspot.com/2013/03/sharepoint-2013-search-moving-query.html

Search Host Controller hung on "Starting" SharePoint 2013



Single Server:
$SA = Get-SPServiceInstance | Where {$_.Status -like “Provisioning”}
$SA -> to check current setup if you want
$SA.Unprovision()
$SA.Provision()




Multiple Server Setup
$SA = Get-SPServiceInstance | Where {$_.Status -like “Provisioning”}
$SA -> to check current setup if you want
$SA.Unprovision()

You may get an error tell you execution code must be run on server name “…”, but if you check in central admin it actually stop service on this server. You will then move to next server to repeat above step for all server.

Go back to first server and run $SA.provision() on all server. You may get error execute next server like above, just follow it until last server and the error is gone.