The procedures and the examples in this article assume that SharePoint Server 2013 and the Search service application are newly installed and that there is no content in the search index. This article explains how to create and activate search components in a new search topology coming from the default search topology.
If there are items in the search index, follow the procedures in Manage search components in SharePoint Server 2013 andManage the index component in SharePoint Server 2013.
You should Create a Search service application in SharePoint Server 2013.
After creating a Search service application, the SharePoint Server Search service is started on the application server that is hosting the Central Administration website, and search components are deployed to that server, a default topology will be built automatically where all Search components are assigned to the server which is running the Central Administration, but in multi servers farm scenario, you need to change this topology , the only available way currently is through PowerShell which will provide more flexibility in configuring the topology, (you can NOT modify the topology through UI like you used to do with SharePoint 2010).
I will guide you in this post on how to configure 5 servers as the following:
Note: If there are items in the search index, do not continue with this procedure.
you can refer to the below diagram to have better understanding for the topology we are about to configure:
SPAPP-SRV1, SPAPP-SRV2, SPWF-SRV1, SPWF-SRV2, SPWF-SRV3 are the server names
$hostApp1 = Get-SPEnterpriseSearchServiceInstance -Identity "SPAPP-SRV1" $hostApp2 = Get-SPEnterpriseSearchServiceInstance -Identity "SPAPP-SRV2" $hostWF1 = Get-SPEnterpriseSearchServiceInstance -Identity "SPWF-SRV1" $hostWF2 = Get-SPEnterpriseSearchServiceInstance -Identity "SPWF-SRV2" $hostWF3 = Get-SPEnterpriseSearchServiceInstance -Identity "SPWF-SRV3" Start-SPEnterpriseSearchServiceInstance -Identity $hostApp1 Start-SPEnterpriseSearchServiceInstance -Identity $hostApp2 Start-SPEnterpriseSearchServiceInstance -Identity $hostWF1 Start-SPEnterpriseSearchServiceInstance -Identity $hostWF2 Start-SPEnterpriseSearchServiceInstance -Identity $hostWF3
Get Search Service Instance status (started or stopped) after running the above commands Get-SPEnterpriseSearchServiceInstance -Identity $hostApp1 Get-SPEnterpriseSearchServiceInstance -Identity $hostApp2 Get-SPEnterpriseSearchServiceInstance -Identity $hostWF1 Get-SPEnterpriseSearchServiceInstance -Identity $hostWF2 Get-SPEnterpriseSearchServiceInstance -Identity $hostWF3
$ssa = Get-SPEnterpriseSearchServiceApplication $newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa
#SPAPP-SRV1 New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1 New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1 New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1 New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1 New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp1 -IndexPartition 0 #SPAPP-SRV2 New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp2 New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp2 New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp2 New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp2 New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostApp2 -IndexPartition 0 #SPWF-SRV1 , SPWF-SRV2 , SPWF-SRV3 New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostWF1 New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostWF2 New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostWF3
Set-SPEnterpriseSearchTopology -Identity $newTopology
Get-SPEnterpriseSearchTopology -SearchApplication $ssa
The command returns an overview of active and inactive topologies, in this example:
TopologyId : fce8507d-61c6-4498-8038-4fd2d0a62c6e CreationDate : 1/30/2012 2:52:00 AM State : Inactive ComponentCount : 6 TopologyId : b63d48b2-df5c-41be-a7f4-9abaee483611 CreationDate : 1/30/2012 4:30:00 AM State : Active ComponentCount : 12
Get-SPEnterpriseSearchStatus -SearchApplication $ssa -Text
This command should return a list of all the active search components. The state of the active search components should be displayed as Active.
More tp link : Configuring SharePoint 2013 Search Topology andManage the search topology in SharePoint Server 2013.
Change the default search topology in SharePoint Server 2013,布布扣,bubuko.com
Change the default search topology in SharePoint Server 2013
原文:http://blog.csdn.net/tristan_dong/article/details/22322191