Change the default search topology in SharePoint Server 2013
2014-03-27 21:54
555 查看
Introduction
TheproceduresandtheexamplesinthisarticleassumethatSharePointServer2013andtheSearchserviceapplicationarenewlyinstalledandthatthereisnocontentinthesearchindex.Thisarticleexplainshowtocreateandactivatesearchcomponentsinanewsearchtopologycomingfromthedefaultsearchtopology.
Ifthereareitemsinthesearchindex,followtheproceduresin
and
Firstly:
YoushouldCreateaSearchserviceapplicationinSharePointServer2013.
Second:
AftercreatingaSearchserviceapplication,theSharePointServerSearchserviceisstartedontheapplicationserverthatishostingtheCentralAdministrationwebsite,andsearchcomponentsaredeployedtothatserver,adefaulttopologywillbebuiltautomaticallywhereallSearchcomponentsareassignedtotheserverwhichisrunningtheCentralAdministration,butinmultiserversfarmscenario,youneedtochangethistopology,theonlyavailablewaycurrentlyisthroughPowerShellwhichwillprovide
moreflexibilityinconfiguringthetopology,(youcanNOTmodifythetopologythroughUIlikeyouusedtodowithSharePoint2010).
HereismySampleTopology
Iwillguideyouinthispostonhowtoconfigure5serversasthefollowing:3frontserversrunningtheQueryProcessingcomponenttohandlesearchqueryrequestsfromusers,thequeryprocessingcomponentswillbelocatedintheWFEservers.
2backendserversserversrunningtherestofSearchcomponents,TherestofsearchcomponentswillbelocatedintheApplicationservers.
WewillconfigurethebelowtopologytohaveallSearchcomponentshighavailable(nosinglepointoffailureforanycomponents),eventheindexpartitionwillbereplicatedtotheotherserver(replica)
Note:Ifthereareitemsinthesearchindex,donotcontinuewiththisprocedure.
youcanrefertothebelowdiagramtohavebetterunderstandingforthetopologyweareabouttoconfigure:
Beforeyoustart:
MakesuretorunthebelowPowershellcommandsontheserverthatishostingtheCentralAdministrationfromCentraladministration–SearchAdministrationpage,makesuretheindexfilesareempty,Searchableitemsappearsas0
makesurethatthecurrentuserwhoisgoingtoexecutethepowershellisaddedasadmintoSearchserviceapplication.
SPAPP-SRV1,SPAPP-SRV2,SPWF-SRV1,SPWF-SRV2,SPWF-SRV3aretheservernames
1.Specifythenewserversyouwanttoaddsearchcomponentsto,startasearchserviceinstance(ssi)ontheseserversandcreatereferencestothesearchserviceinstances.Inthisprocedurewehaveusedtheexamplehostnames"myserver<n>"fortheservers
aslistedintheTargetsearchtopologytable.AttheWindowsPowerShellcommandprompt,typethefollowingcommand(s):
$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
2.Waituntilallthesearchserviceinstancesarerunning.AttheWindowsPowerShellcommandprompt,typethefollowingcommandsuntilthecommandsreturnthestate"Online"foreachofthesearchserviceinstances:
GetSearchServiceInstancestatus(startedorstopped)afterrunningtheabovecommands Get-SPEnterpriseSearchServiceInstance-Identity$hostApp1 Get-SPEnterpriseSearchServiceInstance-Identity$hostApp2 Get-SPEnterpriseSearchServiceInstance-Identity$hostWF1 Get-SPEnterpriseSearchServiceInstance-Identity$hostWF2 Get-SPEnterpriseSearchServiceInstance-Identity$hostWF3
3.Createanewsearchtopologyandareferencetothenewsearchtopology.AttheWindowsPowerShellcommandprompt,typethefollowingcommand(s):
$ssa=Get-SPEnterpriseSearchServiceApplication $newTopology=New-SPEnterpriseSearchTopology-SearchApplication$ssa
4.Addallthesearchcomponentstothenewsearchtopology.ThefollowingWindowsPowerShellcommandswillcreatethesearchcomponentsofthenewtopologyandassignthemtothenewservers.Inthissmallenterprisesearchtopologythereisoneindex
partition,indexpartition0,tocaterforamaximumoftenmillionitems.Thisisindicatedwiththeparameter-IndexPartitioninthecommandNew-SPEnterpriseSearchIndexComponent.TheindexpartitionhasoneindexreplicaonvirtualmachineBandoneindex
replicaonvirtualmachineD.Eachindexreplicawillcontaintheexactsamesearchindexandishostedonadifferentphysicalservertoachievefaulttolerance.AttheWindowsPowerShellcommandprompt,typethefollowingcommand(s):
#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-IndexPartition0 #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-IndexPartition0 #SPWF-SRV1,SPWF-SRV2,SPWF-SRV3 New-SPEnterpriseSearchQueryProcessingComponent-SearchTopology$newTopology -SearchServiceInstance$hostWF1 New-SPEnterpriseSearchQueryProcessingComponent-SearchTopology$newTopology -SearchServiceInstance$hostWF2 New-SPEnterpriseSearchQueryProcessingComponent-SearchTopology$newTopology -SearchServiceInstance$hostWF3
5.Activatethenewsearchtopology.AttheWindowsPowerShellcommandprompt,typethefollowingcommand:
Set-SPEnterpriseSearchTopology-Identity$newTopology
6.Verifythatthenewsearchtopologyisactive.AttheWindowsPowerShellcommandprompt,typethefollowingcommand
Get-SPEnterpriseSearchTopology-SearchApplication$ssa
Thecommandreturnsanoverviewofactiveandinactivetopologies,inthisexample:
TopologyId:fce8507d-61c6-4498-8038-4fd2d0a62c6e
CreationDate:1/30/20122:52:00AM
State:Inactive
ComponentCount:6
TopologyId:b63d48b2-df5c-41be-a7f4-9abaee483611
CreationDate:1/30/20124:30:00AM
State:Active
ComponentCount:12
7.Verifythatallcomponentsofthenewsearchtopologyarerunningcorrectly.AttheWindowsPowerShellcommandprompt,typethefollowingcommand
Get-SPEnterpriseSearchStatus-SearchApplication$ssa-Text
Thiscommandshouldreturnalistofalltheactivesearchcomponents.ThestateoftheactivesearchcomponentsshouldbedisplayedasActive.
Moretplink:
thesearchtopologyinSharePointServer2013.
相关文章推荐
- Change SharePoint 2013 Search Topology
- SharePoint 2013中的"Error in the Microsoft SharePoint Server People Protocol Handler"报错
- How to custom search results in SharePoint Server 2013
- How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0(Se
- Custom Search Center in SharePoint 2013
- How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0
- Configure Excel Services with multiple servers in SharePoint Server 2013
- Missing server side dependencies in SharePoint 2013
- How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0
- Changes to the Design View in SharePoint Designer 2013
- Making the Newsfeed web part available outside of My Sites in SharePoint 2013 分类: Sharepoint 2015-07-07 19:29 4人阅读 评论(0) 收藏
- Using the FullCalendar Plugin in SharePoint 2013 Apps
- Update metadata value using server object model in sharepoint 2013
- Making the Newsfeed web part available outside of My Sites in SharePoint 2013
- The base operation about Metadata Service in sharepoint 2013
- Filter the task and subtask in sharepoint 2013
- Knowledge Base: Removing SharePoint Extensions in Team Foundation Server 2013
- Fix SharePoint Server 2013 The SDDL string contains an invalid sid or a sid that cannot be translated. Issue
- SharePoint Portal Server 2003 Search does't like .Net Framework 2.0!!! (for Error in PortalCrawl Web Service solution)
- Search List Items in SharePoint Portal Server