建立及設定 Search service 應用程式在 SharePoint Server 2016Create and configure a Search service application in SharePoint Server 2016

摘要:了解如何建立及設定 SharePoint Search service 應用程式,以便您可以編目內容及提供搜尋結果給使用者。Summary: Learn how to create and configure a SharePoint Search service application so that you can crawl content and provide search results to users.

開始之前Before you begin

如果您是使用伺服器陣列設定精靈安裝 SharePoint Server 2016 之後,可能會 Search service 應用程式已建立的時間。若要確認 Search service 應用程式是否存在,您可以按一下 [管理服務應用程式在管理中心首頁上的 [應用程式管理] 區段。針對本文的其餘部分,假設的 Search service 應用程式尚不存在,與因此您必須建立一。If you used the Farm Configuration Wizard after you installed SharePoint Server 2016, a Search service application might have been created at that time. To verify whether a Search service application exists, you can click Manage service applications in the Application Management section on the Central Administration home page. For the remainder of this article, it is assumed that a Search service application does not exist yet, and that therefore you must create one.

注意

SharePoint Server 2016 執行網站在網際網路資訊服務 (IIS),因為系統管理員和使用者而定的瀏覽器提供的協助工具功能。SharePoint Server 2016 支援支援的瀏覽器的協助工具功能。Because SharePoint Server 2016 runs as websites in Internet Information Services (IIS), administrators and users depend on the accessibility features that browsers provide. SharePoint Server 2016 supports the accessibility features of supported browsers.

如需詳細資訊,請參閱下列資源:For more information, see the following resources:

如何建立及設定 SharePoint Search Service 應用程式How to create and configure a SharePoint Search service application

當您部署及設定 Search Service 應用程式時,會執行下列主要工作:When you deploy and configure a Search service application, you perform the following main tasks:

  1. 建立帳戶 - Search Service 應用程式需要特定網域使用者帳戶。Create accounts — Certain domain user accounts are required specifically for a Search service application.

  2. 建立 Search Service 應用程式 - Search Service 應用程式提供企業搜尋功能。Create a Search service application — A Search service application provides enterprise search features and functionality.

  3. 設定 Search Service 應用程式 - Search Service 應用程式的基本設定包含設定預設內容存取帳戶、電子郵件連絡人及內容來源。Configure the Search service application — Basic configuration of a Search service application includes configuring a default content access account, an email contact, and content sources.

  4. 設定 Search Service 應用程式拓撲 - 您可以在伺服器陣列的不同伺服器上部署搜尋元件。您也可以指定要用來裝載與搜尋相關之資料庫的 SQL Server 執行個體。Configure the Search service application topology — You can deploy search components on different servers in the farm. You can also specify which instance of SQL Server is used to host the search-related databases.

步驟 1:建立 SharePoint Search Service 應用程式所需的帳戶Step 1: Create accounts that are required for a SharePoint Search service application

下表列出建立 Search Service 應用程式時所需的帳戶。The following table lists the accounts that are required when a Search service application is created.

帳戶Account 說明Description 注意Notes
Search ServiceSearch service SharePoint Server Search Service (Windows 服務) 的 Windows 使用者認證Windows user credentials for the SharePoint Server Search service, which is a Windows service 此設定會套用至伺服器陣列中的所有 Search Service 應用程式。您可以隨時在管理中心首頁上,按一下 [安全性] 區段中的 [設定服務帳戶] 變更此帳戶。This setting applies to all Search service applications in the farm. You can change this account at any time by clicking Configure service accounts in the Security section on the Central Administration home page.
搜尋管理 Web 服務應用程式集區Search Admin Web Service application pool

搜尋查詢及網站設定 Web 服務應用程式集區Search Query and Site Settings Web Service application pool
Windows 使用者認證Windows user credentials 針對上述每個帳戶,您可以使用為 Search Service 指定的相同認證。或者,您可以根據基本權限管理原則,為每個帳戶指定不同的認證。For each of these accounts, you can use the same credentials that you specified for the Search service. Or, you can assign different credentials to each account according to the principle of least-privilege administration.
預設的內容存取Default content access Search Service 應用程式的 Windows 使用者認證,可在編目時用來存取內容Windows user credentials for the Search service application to use to access content when crawling 建議您根據基本權限管理原則,為預設內容存取帳戶指定不同的帳戶。We recommend that you specify a separate account for the default content access account according to the principle of least-privilege administration.

使其可使用時的帳戶用於搜尋服務、 搜尋管理 Web 服務應用程式集區,且搜尋查詢和網站設定 Web 服務應用程式集區必須登錄為受管理帳戶在 SharePoint Server 2016 您建立 Search service 應用程式。若要將每個這些帳戶登錄為受管理帳戶使用下列程序。The accounts that you use for the Search service, the Search Admin Web Service application pool, and the Search Query and Site Settings Web Service application pool must be registered as managed accounts in SharePoint Server 2016 so that they are available when you create the Search service application. Use the following procedure to register each of these accounts as a managed account.

註冊受管理帳戶To register a managed account

  1. 在管理中心首頁上,按一下 [快速啟動] 中的 [安全性]。On the Central Administration home page, in the Quick Launch, click Security.

  2. 在「安全性」頁面上,按一下 [一般安全性] 區段中的 [設定受管理帳戶]。On the Security page, in the General Security section, click Configure managed accounts.

  3. 在「受管理帳戶」頁面上,按一下 [註冊受管理帳戶]。On the Managed Accounts page, click Register Managed Account.

  4. 在「註冊受管理帳戶」頁面的 [帳戶註冊] 區段中,輸入要用為服務帳戶之認證的使用者名稱及密碼。On the Register Managed Account page, in the Account Registration section, type the user name and password that you want to use as credentials for the service account.

  5. 若要管理此帳戶的密碼變更 SharePoint Server 2016,請選取 [啟用自動變更密碼] 核取方塊並設定自動變更密碼的參數。If you want SharePoint Server 2016 to manage password changes for this account, select the Enable automatic password change check box and configure the parameters for automatic password change.

  6. 按一下 [確定]。Click OK.

步驟 2:建立 SharePoint Search Service 應用程式Step 2: Create a SharePoint Search service application

每個 Search Service 應用程式各有不同的內容索引。如果您想針對不同組內容使用不同的內容索引,則可以建立多個 Search Service 應用程式。例如,如果您想將機密內容 (如員工福利資訊) 隔離到不同的內容索引中,則可以建立個別的 Search Service 應用程式來對應該組內容。Each Search service application has a separate content index. You can create multiple Search service applications if you want to have different content indexes for different sets of content. For example, if you want to segregate sensitive content (such as employee benefits information) into a separate content index, you can create a separate Search service application to correspond to that set of content.

混合式 SharePoint 環境時,您可以建立索引所在的 SharePoint Server 2016 至 Office 365 內容索引的內容。在此例中您要建立搜尋服務應用程式的類型雲端。您只能建立一個雲端 Search service 應用程式每個伺服器陣列,但您可以建立多個 SSAs 與單一雲端 SSA 組合。If your SharePoint environment is hybrid, you can index content that resides in SharePoint Server 2016 into the Office 365 content index. In this case you need to create a Search service application of type cloud. You can only create one cloud Search service application per farm, but you can create multiple SSAs in combination with the single cloud SSA.

注意

每個 Search Service 應用程式都有它自己的搜尋拓樸。如果您在伺服器陣列中建立不只一個 Search Service 應用程式,建議您為每個 Search Service 應用程式的搜尋拓撲配置專用伺服器。部署數個 Search Service 應用程式至同一部伺服器會大幅提高該伺服器上的資源需求 (CPU 和記憶體)。Each Search service application has its own search topology. If you create more than one Search service application in a farm, we recommend that you allocate dedicated servers for the search topology of each Search service application. Deploying several Search service applications to the same servers will significantly increase the resource requirements (CPU and memory) on those servers.

您可以使用下列程序建立搜尋服務應用程式或雲端搜尋服務應用程式。Use the following procedure to create a Search service application or a cloud Search service application.

若要建立 Search service 應用程式To create a Search service application

  1. 檢查執行此程序的使用者帳戶是否為您想建立服務應用程式之伺服器陣列管理員群組的成員。Verify that the user account that is performing this procedure is a member of the Farm Administrators group for the farm for which you want to create the service application.

  2. 在管理中心首頁上,按一下 [應用程式管理] 區段中的 [管理服務應用程式]。On the Central Administration home page, in the Application Management section, click Manage service applications.

  3. 在「管理服務應用程式」頁面的功能區上,依序按一下 [新增] 及 [Search Service 應用程式]。On the Manage Service Applications page, on the ribbon, click New, and then click Search Service Application.

  4. 在「建立新的 Search Service 應用程式」頁面上,執行下列動作:On the Create New Search Service Application page, do the following:

    • 接受 [服務應用程式名稱] 的預設值,或輸入 Search Service 應用程式的新名稱。Accept the default value for Service Application name, or type a new name for the Search service application.

    • 若要將此設雲端 Search service 應用程式,在 [ Search Service 應用程式類型] 區段中的 [核取記號表示雲端 Search Service 應用程式] 方塊中。否則請核取方塊。To make this a cloud Search service application, in the Search Service Application type section, checkmark the Cloud Search Service Application box. Otherwise, leave the box unchecked.

    • 在 [Search Service 帳戶] 清單中,選取您在上一個程序中為了執行 Search Service 所註冊的受管理帳戶。In the Search Service Account list, select the managed account that you registered in the previous procedure to run the Search service.

    • 在 [搜尋管理 Web 服務的應用程式集區] 區段中,執行下列動作:In the Application Pool for Search Admin Web Service section, do the following:

      • 選取 [建立新的應用程式集區] 選項,然後在 [應用程式集區名稱] 文字方塊中指定應用程式集區的名稱。Select the Create new application pool option, and then specify a name for the application pool in the Application pool name text box.

      • 在 [選取應用程式集區的安全性帳戶] 區段中,選取 [可設定] 選項,然後從清單中選取為了執行搜尋管理 Web 服務應用程式集區所註冊的帳戶。In the Select a security account for this application pool section, select the Configurable option, and then from the list select the account that you registered to run the application pool for the Search Admin Web Service.

    • 在 [搜尋查詢和網站設定 Web 服務的應用程式集區] 區段中,執行下列動作:In the Application Pool for Search Query and Site Settings Web Service section, do the following:

      • 選擇 [建立新的應用程式集區] 選項,然後在 [應用程式集區名稱] 文字方塊中指定應用程式集區的名稱。Choose the Create new application pool option, and then specify a name for the application pool in the Application pool name text box.

      • 在 [選取應用程式集區的安全性帳戶] 區段中,選取 [可設定] 選項,然後從清單中選取為了執行搜尋查詢和網站設定 Web 服務應用程式集區所註冊的帳戶。In the Select a security account for this application pool section, select the Configurable option, and then from the list select the account that you registered to run the application pool for the Search Query and Site Settings Web Service.

  5. 按一下 [確定]。Click OK.

步驟 3:設定 SharePoint Search Service 應用程式Step 3: Configure the SharePoint Search service application

您可以在 Search Service 應用程式的「搜尋管理」頁面上,設定該服務應用程式。請使用下列程序移至特定 Search Service 應用程式的「搜尋管理」頁面。You configure a Search service application on the Search Administration page for that service application. Use the following procedure to go to the Search Administration page for a particular Search service application.

移至搜尋管理] 頁面To go to the Search Administration page

  1. 確認執行此程序的使用者帳戶是否為您要設定之 Search Service 應用程式的管理員。Verify that the user account that is performing this procedure is an administrator for the Search service application that you want to configure.

  2. 在管理中心網站的首頁上,按一下 [應用程式管理] 區段中的 [管理服務應用程式]。On the home page of the Central Administration website, in the Application Management section, click Manage service applications.

  3. 在「管理服務應用程式」頁面上,按一下您要設定的 Search Service 應用程式。On the Manage Service Applications page, click the Search service application that you want to configure.

在「搜尋管理」頁面上,設定下列各節所述的設定:On the Search Administration page, configure the settings as described in the following sections:

  • 指定預設的內容存取帳戶Specify the default content access account

  • 指定連絡人的電子郵件地址Specify the contact email address

  • 建立內容來源Create content sources

指定預設的內容存取帳戶Specify the default content access account

當您建立 Search service 應用程式時,您指定的搜尋服務帳戶會自動設定為預設內容存取帳戶。編目程式會使用此帳戶不具有指定不同的帳戶相關聯的編目規則的編目內容。預設內容存取帳戶,我們建議您指定網域使用者帳戶具有您想要盡可能編目的內容量的讀取權限。您可以隨時變更預設內容存取帳戶。如需詳細資訊,請參閱使用預設的內容存取帳戶來編目大部分的內容編目 SharePoint Server 中的最佳作法When you create a Search service application, the account that you specify for the Search service is automatically configured as the default content access account. The crawler uses this account to crawl content that does not have an associated crawl rule that specifies a different account. For the default content access account, we recommend that you specify a domain user account that has read access to as much of the content that you want to crawl as possible. You can change the default content access account at any time. For more information, see Use the default content access account to crawl most content in Best practices for crawling in SharePoint Server.

如果您必須使用不同的帳戶來編目特定內容,您可以建立編目規則,並指定不同的帳戶進行編目。如需如何建立編目規則,請參閱 < Manage crawl in SharePoint Server 的規則If you have to crawl certain content by using a different account, you can create a crawl rule and specify a different account for crawling. For information about how to create a crawl rule, see Manage crawl rules in SharePoint Server.

請使用下列程序指定預設的內容存取帳戶。Use the following procedure to specify the default content access account.

若要指定預設內容存取帳戶To specify the default content access account

  1. 在「搜尋管理」頁面的 [系統狀態] 區段中,按一下 [預設內容存取帳戶] 列中的連結。On the Search Administration page, in the System Status section, click the link in the Default content access account row.

  2. 在 [預設內容存取帳戶] 對話方塊的 [帳戶] 方塊中輸入您建立的格式為_「 網域 \ 使用者名稱_的內容存取帳戶。In the Default Content Access Account dialog box, in the Account box, type the account that you created for content access in the form domain\user name.

  3. 在 [密碼] 及 [確認密碼] 方塊中,輸入此帳戶的密碼。Type the password for this account in the Password and Confirm Password boxes.

  4. 按一下 [確定]。Click OK.

指定連絡人的電子郵件地址Specify the contact email address

Search Service 會將連絡人電子郵件地址寫入已編目伺服器的記錄中。預設的連絡人電子郵件地址 someone@example.com 是預留位置。建議您將此變更為當編目可能發生問題時 (例如,正在編目搜尋系統的伺服器效能低落),外部管理員可以連絡的帳戶。The Search service writes the contact email address to the logs of crawled servers. The default contact email address, someone@example.com, is a placeholder. We recommend that you change this to an account that an external administrator can contact when a crawl might be contributing to a problem such as a decrease in performance on a server that the search system is crawling.

請使用下列程序指定連絡人的電子郵件地址。Use the following procedure to specify the contact email address.

指定連絡人的電子郵件地址To specify the contact email address

  1. 在「搜尋管理」頁面上,按一下 [系統狀態] 區段中的 [連絡人電子郵件地址] 連結。On the Search Administration page, in the System Status section, click the link for the Contact e-mail address.

  2. 在 [搜尋電子郵件設定] 對話方塊的 [電子郵件地址] 方塊中,輸入想要顯示在搜尋系統所編目之伺服器記錄中的電子郵件地址。In the Search E-mail Setting dialog box, in the E-mail Address box, type the email address that you want to appear in the logs of servers that are crawled by the search system.

  3. 按一下 [確定]。Click OK.

建立 SharePoint Search Service 應用程式的內容來源Create content sources in a SharePoint Search service application

為了讓使用者能夠取得搜尋結果,搜尋系統必須先編目對應的內容。編目需要至少一個內容來源。內容來源是一組您用來指定要編目的起始 Url 編目、 內容類型的選項及何時和編目的深度。建立 Search service 應用程式之後,名為 「 本機 SharePoint 網站 」 的內容來源自動建立及設定編目本機伺服器陣列中的所有 SharePoint 網站及都編目使用者設定檔。您可以建立內容來源以指定其他內容編目及系統將會如何編目內容。如需詳細資訊,請參閱新增、 編輯或刪除 SharePoint Server 中的內容來源。不過,您不具有如果不希望編目以外的本機伺服器陣列中所有 SharePoint 網站的內容建立其他內容來源。In order for users to be able to get search results, the search system must first crawl the corresponding content. Crawling requires at least one content source. A content source is a set of options that you use to specify the type of content to crawl, the starting URLs to crawl, and when and how deep to crawl. When a Search service application is created, a content source named "Local SharePoint sites" is automatically created and configured for crawling all SharePoint sites in the local server farm, and for crawling user profiles. You can create content sources to specify other content to crawl and how the system will crawl that content. For more information, see Add, edit, or delete a content source in SharePoint Server. However, you do not have to create other content sources if you do not want to crawl content other than the SharePoint sites in the local farm.

如果您選擇 [獨立] 安裝選項安裝 SharePoint Server 2016、 伺服器陣列中的所有 SharePoint 網站的完整編目時自動執行安裝後及累加編目排程為發生之後每隔 20 分鐘。如果當您安裝 SharePoint Server 2016 選擇 [伺服器陣列] 安裝選項,進行任何編目會自動排程或執行。後者,您必須以手動方式啟動編目或排定要執行的編目時間。如需詳細資訊,請參閱下列文章;If you choose the Standalone installation option when you install SharePoint Server 2016, a full crawl of all SharePoint sites in the farm is automatically performed after installation and an incremental crawl is scheduled to occur every 20 minutes after that. If you choose the Server Farm installation option when you install SharePoint Server 2016, no crawls are automatically scheduled or performed. In the latter case, you must either start crawls manually or schedule times for crawls to be performed. For more information, see the following articles;

步驟 4:設定 SharePoint Search Service 應用程式拓撲Step 4: Configure the SharePoint Search service application topology

當您建立 Search Service 應用程式時,會在架設管理中心網站的應用程式伺服器上啟動 SharePoint Server Search Service,並將搜尋元件部署至該伺服器。如果伺服器陣列中有多部應用程式伺服器,您可以根據需求,在其他應用程式伺服器上部署額外的搜尋元件。您可以部署特定元件的多個執行個體。如需詳細資訊,請參閱下列文章:When you create 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. If you have more than one application server in your farm, you can deploy additional search components on other application servers, depending on your requirements. You can deploy multiple instances of certain components. For more information, see the following articles:

另請參閱See also

在 SharePoint Server 中建立搜尋中心網站Create a Search Center site in SharePoint Server