2013搜索拓扑
创建搜索拓扑首先确定的是搜索服务账户是否有服务器的管理员权限,如果没有管理员权限,执行代码不会报错,但是执行完毕之后会出现红x。
然后执行的是Powershell代码如下:
$host01 = Get-SPEnterpriseSearchServiceInstance -Identity "App01"
$host02 = Get-SPEnterpriseSearchServiceInstance -Identity "App02"
Start-SPEnterpriseSearchServiceInstance -Identity $host02
Start-SPEnterpriseSearchServiceInstance -Identity $host03
上述代码的意思是在服务器App01和App02上启动搜索服务以及创建服务的实例,输入上述代码后请等待。直到两个服务器的SharePoint Search服务启动为止,然后执行下述代码:
$ssa = Get-SPEnterpriseSearchServiceApplication
$newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa
上述代码是创建了一下新的拓扑,执行完毕后执行下述代码:
New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $host01
New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $host01
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $host01
New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $host01
New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $host02 -IndexPartition 0
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $host02
完毕之后执行:
Set-SPEnterpriseSearchTopology -Identity $newTopology
这个执行时间比较长,等待完成之后如果没有报错然后打开Search Service App,可能会报错,多刷新几次即可。