Assign query role to web servers

For many reasons you may want to extend your SharePoint 2013 search topology and one of the requirements is assign the query role to dedicated web servers. So let’s begin

#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
$WFE = Get-SPEnterpriseSearchServiceInstance -Identity "SRVMV70331";
Start-SPEnterpriseSearchServiceInstance -Identity $WFE;

# 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 $WFE;
# wait untill the status online before proceeding next steps, once the status online
# Add new search compomenent on wfe
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $clone -SearchServiceInstance $WFE01;
#Also we can add the following components:
#New-SPEnterpriseSearchAnalyticsProcessingComponent
#New-SPEnterpriseSearchContentProcessingComponent
#New-SPEnterpriseSearchAdminComponent
#New-SPEnterpriseSearchCrawlComponent

#Activate the cloned search topology
Set-SPEnterpriseSearchTopology -Identity $clone

Will be necessary to repeat this process in all the servers of the farm that need an additional component

For more references, please visit: http://technet.microsoft.com/en-us/library/jj862354.aspx

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s