首页 > 代码库 > sharepoint 2013 更改搜索服务器配置

sharepoint 2013 更改搜索服务器配置

1.在新的搜索服务器中,安装sharepoint server 2013,并且连接到已有sharepoint 服务器场,完成之后,就可以配置新的搜索服务器。

打开sharepoint powershell 2013 管理员运行如下代码:

$hostA = Get-SPEnterpriseSearchServiceInstance -Identity "DevSearch2013"
Start-SPEnterpriseSearchServiceInstance -Identity $hostA
Get-SPEnterpriseSearchServiceInstance -Identity $hostA
$ssa = Get-SPEnterpriseSearchServiceApplication
$newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa
New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostA -IndexPartition 0

Set-SPEnterpriseSearchTopology -Identity $newTopology

 

其中DevSearch2013指的是当前搜索服务器的机器名.按照上面的代码,一句句运行下来.就能更改新的搜索服务器。