您的位置:首页 > 运维架构

Change the default search topology in SharePoint Server 2013

2014-03-27 21:54 555 查看

Introduction

TheproceduresandtheexamplesinthisarticleassumethatSharePointServer2013andtheSearchserviceapplicationarenewlyinstalledandthatthereisnocontentinthesearchindex.Thisarticleexplainshowtocreateandactivatesearchcomponents
inanewsearchtopologycomingfromthedefaultsearchtopology.

Ifthereareitemsinthesearchindex,followtheproceduresinManagesearchcomponentsinSharePointServer2013
andManagetheindexcomponentinSharePointServer2013.



Firstly:

Youshould
CreateaSearchserviceapplicationinSharePointServer2013.

Second:

AftercreatingaSearchserviceapplication,theSharePointServerSearchserviceisstartedontheapplicationserverthatishostingtheCentralAdministrationwebsite,andsearchcomponentsaredeployedtothatserver,adefaulttopologywillbebuilt
automaticallywhereallSearchcomponentsareassignedtotheserverwhichisrunningtheCentralAdministration,butinmultiserversfarmscenario,youneedtochangethistopology,theonlyavailablewaycurrentlyisthroughPowerShellwhichwillprovide
moreflexibilityinconfiguringthetopology,(youcanNOTmodifythetopologythroughUIlikeyouusedtodowithSharePoint2010).

HereismySampleTopology

Iwillguideyouinthispostonhowtoconfigure5serversasthefollowing:

3frontserversrunningtheQueryProcessingcomponenttohandlesearchqueryrequestsfromusers,thequeryprocessingcomponentswillbelocatedintheWFEservers.
2backendserversserversrunningtherestofSearchcomponents,TherestofsearchcomponentswillbelocatedintheApplicationservers.
WewillconfigurethebelowtopologytohaveallSearchcomponentshighavailable(nosinglepointoffailureforanycomponents),eventheindexpartitionwillbereplicatedtotheotherserver(replica)

Note:Ifthereareitemsinthesearchindex,donotcontinuewiththisprocedure.

youcanrefertothebelowdiagramtohavebetterunderstandingforthetopologyweareabouttoconfigure:



Beforeyoustart:

MakesuretorunthebelowPowershellcommandsontheserverthatishostingtheCentralAdministration
fromCentraladministration–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:ConfiguringSharePoint2013SearchTopologyandManage
thesearchtopologyinSharePointServer2013.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐