Professional Documents
Culture Documents
# Clone the default Topology (which is empty) and create a new one and then acti
vate it
Write-Host "Configuring Search Component Topology...."
$clone = $ServiceApplication.ActiveTopology.Clone()
$SSI = Get-SPEnterpriseSearchServiceInstance -local
New-SPEnterpriseSearchAdminComponent SearchTopology $clone -SearchServiceInstance
$SSI
New-SPEnterpriseSearchContentProcessingComponent SearchTopology $clone -SearchSer
viceInstance $SSI
New-SPEnterpriseSearchAnalyticsProcessingComponent SearchTopology $clone -SearchS
erviceInstance $SSI
New-SPEnterpriseSearchCrawlComponent SearchTopology $clone -SearchServiceInstance
$SSI
Remove-Item -Recurse -Force -LiteralPath $IndexLocation -ErrorAction SilentlyCon
tinue
mkdir -Path $IndexLocation -Force
New-SPEnterpriseSearchIndexComponent SearchTopology $clone -SearchServiceInstance
$SSI -RootDirectory $IndexLocation
New-SPEnterpriseSearchQueryProcessingComponent SearchTopology $clone -SearchServi
ceInstance $SSI
$clone.Activate()
Write-host "Your search service application $SearchServiceName is now ready