Greetings,
I'm going through a standard process of setting up a Search Topology for a SharePoint 2013 farm. However, this time I have run into an issue. Below, I have provided the powershell I use to setup the Topology and also the error I get.
I get the error after I have attempted to activate the Topology. I have a hunch that the solution is simple but I cannot seem to place a finger on it. Any help is appreciated.
#Prepare the topology variables
$hostApp1 = Get-SPEnterpriseSearchServiceInstance -Identity "AppServer"
$hostWF1 = Get-SPEnterpriseSearchServiceInstance -Identity "WFEServer"
$hostWF2 = Get-SPEnterpriseSearchServiceInstance -Identity "WFEServer"
Start-SPEnterpriseSearchServiceInstance -Identity $hostApp1
Start-SPEnterpriseSearchServiceInstance -Identity $hostWF1
Start-SPEnterpriseSearchServiceInstance -Identity $hostWF2
#Get Search Service Instance status (started or stopped) after running the above commands
Get-SPEnterpriseSearchServiceInstance -Identity $hostApp1
Get-SPEnterpriseSearchServiceInstance -Identity $hostWF1
Get-SPEnterpriseSearchServiceInstance -Identity $hostWF2
#Setting up the topology
$ssa = Get-SPEnterpriseSearchServiceApplication
$newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa
#Activate the search
$ssa = Get-SPEnterpriseSearchServiceApplication
$activeTopology = Get-SPEnterpriseSearchTopology –Active –SearchApplication $ssa
$activeTopology
#SPAPP-SRV1
New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1
New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1
New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1 -IndexPartition 0
#SPWF-SRV1 , SPWF-SRV2 , SPWF-SRV3
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostWF1
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostWF2
#View each of the components
$file = “c:\componentinfo.txt”
$ssa = Get-SPEnterpriseSearchServiceApplication
$activeTopology = Get-SPEnterpriseSearchTopology –SearchApplication $ssa –Active
Get-SPEnterpriseSearchComponent –SearchTopology $activeTopology | Out-File $file
#Activate the Topology
Set-SPEnterpriseSearchTopology -Identity $newTopology
Below is the error I get
![]()
Below is the error.
Set-EnterpriseSearchToplogy: Toplogy must contain at least one component of type: Microsoft.Office.Server.Search.Administration.Toplogy.CrawlComponent at Line:1 Char:1
Thanks in advance.
Daniel Christian (MCTS)