zoukankan      html  css  js  c++  java
  • Change SharePoint 2013 Search Topology

    One of the things that changes in SharePoint 2013 is the fact that you can no longer configure the Search Topology with Central Administration. Instead you have to user PowerShell commands. Unfortunately, the TechNet articles are not completely clear about all the details of how to use the commands in practical situations.

    Therefore I decided to explain how to use them in one typical scenario. In a 3-tier architecture of Web Front End, Application Server and backend SQL Server, I tend to run Central Administration from the web front end, which I’ve named “WFE”, rather than from the application server.

    Before Search Topology

    When you install the Search Service Application, all the components are installed on he Web Front End. To distribute the processing load, in 3-tier architecture its best to keep the Query component on the Web Front End and move all the components to the Application Server. Below are step-by-step instructions to do this. Note that you should only use this method if you haven’t done a crawl yet and your search index is empty. If you want to move components around after you’ve got items in your index, you’ll have to clone the search topology first. In this case see Manage Search Components in SharePoint Search 2013.

    Start by getting a reference to the WFE Server that is presently hosting all search components:

    $wfeserv = Get-SPEnterpriseSearchServiceInstance -Identity "www"

    Start an instance of the search service on the application server (which I have named “AppServ”:

    $appserv = Get-SPEnterpriseSearchServiceInstance -Identity "appserv" 
    Start-SPEnterpriseSearchServiceInstance -Identity $appserv

    Give this command until it reports that the new server instance is “online” (if its not online yet it will say “provisioning”).

    Get-SPEnterpriseSearchServiceInstance -Identity $appserv

    Then create a new search topology and get a reference to it.

    $ssa = Get-SPEnterpriseSearchServiceApplication 
    $newTopology = NewSPEnterpriseSearchTopology -SearchApplication $ssa

    In SharePoint Server 2013, search has six componenets:

    • Admin
    • Crawl
    • Content Processing
    • Analytics Processing
    • Query Processing
    • Index

    Assign 5 of the components to the application server and assign the query component to the web front end:

    New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $appserv 
    New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $appserv 
    New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $appserv 
    New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $appserv 
    New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $wfeserv 
    New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $appserv

    Now you need to activate the search topology:

    Set-SPEnterpriseSearchTopology -Identity $newTopology

    Now you have one active and one inactive topology which you can see with this new command:

    Get-SPEnterpriseSearchTopology -SearchApplication $ssa

    To get full details of the components in the active topology, you can use the Search Status command:

    Get-SPEnterpriseSearchStatus -SearchApplication $ssa -Text

    If everything has worked out OK, then you should see the application server assigned to the components in Central Administration in the search service application:
    AfterSearchTopology Change

  • 相关阅读:
    ASP.NET MVC路由模块
    线程安全的单例模式
    MVC自带表单效验
    MSsql 中 in 语法排序的说明
    Web.Config配置错误页面处理
    WCF基本应用
    .NET微信自定义分享标题、缩略图、超链接及描述的设置方法
    .NET微信通过授权获取用户的基本信息
    C#中获取服务器IP,客户端IP以及网卡物理地址
    .NET获取客户端、服务器端的信息
  • 原文地址:https://www.cnblogs.com/frankzye/p/3137429.html
Copyright © 2011-2022 走看看