SharePoint 2013 Search – Add Index Replica

Topic – How to add an Index Replica to web front end servers in SharePoint 2012 – Search topology:

For many reasons you may want to extend your SharePoint 2013 search topology and one of the requirements is add Index Replica to dedicated web servers or web front ends. Below is the procedure how we can do this.

here is the screen shot with one server – search service application provisioned with all roles in that box.


Two more web front end servers are added to the Farm (WFE01 and WFE02). Our end goal is assign add index replicas to the front end servers as below:



Imp Note: Before you start working on the PowerShell command, add the Firewall inbound rule to allow TCP port 808 on all SharePoint servers of the farm

Here are the PowerShell commands how to do it:

#clone the Active search topology

$ssa = Get-SPServiceApplication -Name “Search Service Application”

$active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active;

$clone = New-SPEnterpriseSearchTopology -Clone -SearchApplication $ssa -SearchTopology $active;

#Start the EnterPrise Search Component on wfe

$WFE01 = Get-SPEnterpriseSearchServiceInstance -Identity “WFE01”;

Start-SPEnterpriseSearchServiceInstance -Identity $WFE01;

# wait for 5 mins to start the search services

sleep 5;

# Make sure the search service instance status online before proceeding next steps

Get-SPEnterpriseSearchServiceInstance -Identity $WFE01;

# wait untill the status online before proceeding next steps, once the status online

# Add index replica on wfe

New-SPEnterpriseSearchIndexComponent -SearchTopology $clone -SearchServiceInstance $WFE01 -IndexPartition 0;

#Activate the cloned search topology

Set-SPEnterpriseSearchTopology -Identity $clone;

#At this point PowerShell command prompt freezes until the search topology active. once it is active you can refresh the Search service application and see the topology changes;

#Repeat the same process for WFE02.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: