如何建立搜尋中心網站集合及啟用 SharePoint Server 的內容編目How to create a Search Center Site Collection and enable crawling of your content in SharePoint Server

摘要:了解如何建立搜尋中心網站集合及啟用 SharePoint Server 的內容編目。Summary: Learn how to create a Search Center Site Collection and enable crawling of your content in SharePoint Server.

在本文中,您將了解:In this article, you'll learn:

如何建立搜尋中心網站集合How to create a Search Center Site Collection

若要建立搜尋中心網站集合,請移至管理中心 --> 建立網站集合,然後輸入網站集合的詳細資訊。以下是您必須輸入:To create a Search Center Site Collection, go to Central Administration --> Create site collections, and then enter details for the site collection. Here's what you have to enter:

  1. 輸入網站的標題Enter a title for the website.

  2. 輸入網站的URLEnter the website's URL.

  3. 選取 [ 2013年體驗版。Select 2013 for the experience version.

  4. 從 [企業] 索引標籤中,選取 [企業搜尋中心]。From the Enterprise tab, select Enterprise Search Center.

  5. 主要網站集合管理] 欄位中輸入網站管理員的使用者名稱In the field Primary Site Collection Administration, enter the site administrator's user name.

    建立網站集合

既然您有搜尋中心網站集合,您可以移至進行內容編目。Now that you have your Search Center Site Collection, you can move on to crawling content.

如何在管理中心啟動完整編目How to start a full crawl in Central Administration

您可以在管理中心啟動完整編目之前,您必須指定您要編目的內容來源。當您執行完整編目時,即使該內容已新增至搜尋索引編目內容來源中的所有內容。Before you can start a full crawl in Central Administration, you have to specify the content source that you want to crawl. When you run a full crawl, all content in the content source is crawled even if that content has already been added to the search index.

在此案例中只能有 SharePoint 內容,您可以選取[本機 SharePoint 網站內容來源進行編目。In a scenario where you only have SharePoint content, you can select to crawl the Local SharePoint sites content source.

  1. 移至 [管理中心 --> 管理服務應用程式 --> Search Service 應用程式 --> 內容來源Go to Central Administration --> Manage service applications --> Search Service Application --> Content Sources.

  2. 在 [管理內容來源] 頁面上[本機 SharePoint 網站內容來源,請先暫停並從功能表中選取 [啟動完整編目On the Manage Content Sources page, pause on the Local SharePoint sites content source, and select Start Full Crawl from the menu.

    選取 [啟動完整編目]

    在 [狀態] 欄中顯示的編目狀態。The status of the crawl is shown in the Status column.

  3. [狀態] 欄中的值為 [閒置直到重新整理此頁面。這表示已完成完整編目。Refresh this page until the value in the Status column is Idle. That means that the full crawl has finished.

    閒置狀態

  4. (選用) 您可以確認您的項目會依序按一下 [編目記錄檔新增至搜尋索引。Optionally, you can verify that your items are added to the search index by clicking Crawl Log.

    在此案例中,搜尋索引中出現 157,297 項目。In this scenario, 157,297 items appear in the search index.

    編目記錄檔

如何在管理中心的連續編目How to enable continuous crawls in Central Administration

根據預設,內容會自動進行編目每第四個小時。但是時變更至您的內容,您可能想要讓使用者可以尋找搜尋中心上盡編目。有空想要進行完整編目用手動方式啟動其內容,以進行變更的每次為這是實際皆有效。如此,若要避免此額外負荷,您可以啟用連續編目的內容來源包含您的內容。By default, content is automatically crawled every fourth hour. But, when changes are made to your content, you probably want it to be crawled as soon as possible so that users can find it on the Search Center. Nobody wants to start a full crawl manually every time that a change is made to their content, as this is neither efficient nor practical. So, to avoid this overhead, you can enable a continuous crawl of the content source that contains your content.

連續編目自動啟動在 15 分鐘的時間間隔。自先前的編目至您的內容進行任何變更會挑選的編目程式並新增至搜尋索引。Continuous crawls start automatically at 15-minute intervals. Any changes that were made to your content since the previous crawl are picked up by the crawler and added to the search index.

若要啟用連續編目:To enable continuous crawls:

  1. 移至 [管理中心 --> 管理服務應用程式 --> Search Service 應用程式 --> 內容來源Go to Central Administration --> Manage service applications --> Search Service Applications --> Content Sources.

  2. 在 [管理內容來源] 頁面上按一下 [您要啟用連續編目的內容來源]。On the Managed Content Sources page, click the content source for which you want to enable continuous crawl.

    在此案例中,是[本機 SharePoint 網站的內容來源。In this scenario, the content source is Local SharePoint sites.

  3. 選取 [啟用連續編目]。Select Enable Continuous Crawls.

    啟用連續編目

如何設定連續編目間隔How to set the continuous crawl interval

連續編目的預設間隔為 15 分鐘。但是,您可以使用 Microsoft PowerShell 設定較短的間隔。下列程式碼範例會將連續編目間隔設定為 1 分鐘。The default interval for continuous crawls is 15 minutes. But, you can set shorter intervals by using Microsoft PowerShell. The following code example sets the continuous crawl interval to 1 minute.

$ssa = Get-SPEnterpriseSearchServiceApplication
$ssa.SetProperty("ContinuousCrawlInterval", 1)

因此,藉由啟用連續編目,搜尋索引會自動更新的最新變更。但有某些類型的變更連續編目其中仍不足以更新搜尋索引,例如,如果您啟用 managed 的屬性當作精簡器 (我們將顯示您如何執行這項作業更新的文章中)。搜尋索引中更新這些變更,您會擁有兩個選項:So, by enabling continuous crawls, your search index is automatically updated with the latest changes. But, there are some types of changes where continuous crawls are insufficient to update the search index, for example, if you enable managed properties as refiners (we'll show you how to do this in a later article). For these changes to be updated in the search index, you have two options:

  • 執行完整編目。Do a full crawl.

  • 不要呼叫重新索引的某個項目。Do something called reindexing .

原因有兩個選項是因為使用的人員內容 (我們呼叫這些內容管理員) 不可能具有搜尋服務應用程式管理層級權限。也就是他們不需要存取管理中心從何處可以開始完整編目。但是,內容管理員所可能具有網站擁有者權限與網站擁有者可以執行重新索引。The reason there are two options is because people who work with content (let's call them content managers) are not likely to have Search service application administration level rights. That is, they don't have access to Central Administration where they can start a full crawl. But, content managers are likely to have Site Owner rights, and Site Owners can do reindexing.

如何將清單重新編製索引How to reindex a list

若要將標示的清單或文件庫重新索引的步驟如下:Here are the steps to mark a list or library for reindexing:

  1. 在清單或文件庫,按一下清單文件庫] 索引標籤-->清單設定] 或 [文件庫設定 --> 進階設定]On your list or library, click the LIST or LIBRARY tab --> List Settings or Library Settings --> Advanced Settings.

  2. 在 [進階設定] 頁面上,按一下 [重新編製索引的清單重新編製索引的文件庫On the Advanced Settings page, click Reindex List or Reindex Document Library.

    按一下重新索引清單

清單會在下一個排程編目期間中編製索引。The list will be reindexed during the next scheduled crawl.

如此,整體、 內容管理員可以高興因為其內容新增至搜尋索引簡短間隔和 Search service 應用程式管理員可以高興因為不理會啟動編目內容管理員正比要求。So, overall, content managers can be happy because their content is added to the search index at short intervals, and Search service application administrators can be happy because they are not bothered by content managers constantly asking them to start a crawl.

本系列中的下一篇文章Next article in this series

規劃 SharePoint Server 中的搜尋結果頁面上使用精簡器Plan to use refiners on a search results page in SharePoint Server