啟動、 暫停、 繼續或停止編目的 SharePoint ServerStart, pause, resume, or stop a crawl in SharePoint Server

摘要:了解如何開始、 暫停、 繼續或停止內容來源的完整或累加編目。Summary: Learn how to start, pause, resume or stop a full or incremental crawl for a content source.

當您執行完整編目的內容來源時,即使在搜尋索引中已經存在的內容編目內容來源所指定的所有內容。您可以分別啟動每個內容來源進行完整編目。或者,按一下 [管理內容來源] 頁面上的 [開始所有編目] 連結會指定要編目使用累加編目,除非任一下列條件,則為 true 的所有內容來源中的內容:When you perform a full crawl for a content source, all content specified by the content source is crawled even if the content already exists in the search index. You can start a full crawl for each content source separately. Alternatively, clicking the Start all crawls link on the Manage Content Sources page causes the content specified in all content sources to be crawled using an incremental crawl, unless either of the following conditions is true:

  • 系統偵測認為需要進行完整編目。The system detects that a full crawl is required.

  • 內容來源是SharePoint 網站] 類型及啟用連續編目內容來源的 [新增/編輯內容來源] 頁面上的 [編目排程] 區段中選取。連續編目是新的編目排程選項僅適用於SharePoint 網站] 類型的內容來源的 SharePoint Server 中。The content source is of type SharePoint Sites and Enable Continuous Crawls is selected in the Crawl Schedules section on the Add/Edit Content Source page for the content source. Continuous crawl is a new crawl schedule option in SharePoint Server that applies only to content sources of type SharePoint Sites.

開始之前Before you begin

您可以執行本文中的程序之前,必須有伺服器陣列中的搜尋服務應用程式,讓您可以執行編目。如需詳細資訊,請參閱建立及設定 Search service 應用程式在 SharePoint Server 2016。Search service 應用程式可以包含一或多個內容來源。您執行每個編目相關聯特定的內容來源,指定要編目的內容。Before you can perform the procedures in this article, there must be a Search service application in the farm so that you can perform crawls. For more information, see Create and configure a Search service application in SharePoint Server 2016. A Search service application can contain one or more content sources. Each crawl that you perform is associated with a particular content source, which specifies the content to crawl.

啟動、暫停、繼續或停止內容來源的編目Start, pause, resume, or stop a crawl for a content source

在 [管理內容來源] 頁面中,您可以對任何未啟用連續編目的內容來源,啟動、暫停、繼續或停止編目。From the Manage Content Sources page, you can start, pause, resume, or stop a crawl for any content source that does not have continuous crawls enabled.

若要啟動、 暫停、 繼續或停止內容來源的編目To start, pause, resume, or stop a crawl for a content source

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

  2. 在管理中心的 [應用程式管理] 區段中,按一下 [管理服務應用程式]。In Central Administration, in the Application Management section, click Manage Service Applications.

  3. 在 [管理服務應用程式] 頁面上,按一下服務應用程式清單中的 [Search Service 應用程式]。On the Manage Service Applications page, in the list of service applications, click the Search service application.

  4. 按一下 [搜尋管理] 頁面上的 [正在編目] 區段中的 [內容來源]。On the Search Administration page, in the Crawling section, click Content Sources.

  5. 在 [管理內容來源] 頁面的內容來源] 清單中的內容來源名稱指向您想要、 按一下箭頭和 [其中一個下列功能表項目。(在 [狀態] 欄中的值可能不會自動重新整理值變更時。若要更新 [狀態] 欄中的值,重新整理 [管理內容來源] 頁面上按一下重新整理。)On the Manage Content Sources page, in the list of content sources, point to the name of the content source that you want, click the arrow and then click one of the following menu items. (The value in the Status column might not automatically refresh when the value changes. To update values in the Status column, refresh the Manage Content Sources page by clicking Refresh.)

    • 啟動完整編目。在 [狀態] 欄中的值變更為正在進行完整編目所選取的內容來源。Start Full Crawl. The value in the Status column changes to Crawling Full for the selected content source.

    • 開始累加編目。在 [狀態] 欄中的值變更為[累加編目所選取的內容來源。Start Incremental Crawl. The value in the Status column changes to Crawling Incremental for the selected content source.

    • 繼續編目。在 [狀態] 欄中的值變更回正在進行完整累加編目所選取的內容來源。Resume Crawl. The value in the Status column changes back to Crawling Full or Crawling Incremental for the selected content source.

    • 暫停編目。在 [狀態] 欄中的值變更為Paused所選取的內容來源。Pause Crawl. The value in the Status column changes to Paused for the selected content source.

      注意

      暫停編目有缺點 MSSCrawlComponentsState 表格中的搜尋管理資料庫可以持續編目元件的參照。如果您想要移除任何編目元件 (假設是因為您要移除主控這些元件從伺服器陣列的伺服器),造成問題。不過時停止編目時,會刪除編目元件 MSSCrawlComponentsState 表格中的參照。因此,如果您想要移除編目元件,最好是停止比以暫停編目的編目。如需移除編目元件的詳細資訊,請參閱 < SharePoint Server 中編目的最佳作法Pausing a crawl has the disadvantage that references to crawl components can remain in the MSSCrawlComponentsState table in the search administration database. This can cause a problem if you want to remove any crawl components (say, because you want to remove a server that hosts those components from the farm). However, when you stop a crawl, references to crawl components in the MSSCrawlComponentsState table are deleted. Therefore, if you want to remove crawl components, it is better to stop crawls than to pause crawls. For more information about removing crawl components, see Best practices for crawling in SharePoint Server.

    • 停止編目。您必須按一下[確定]確認您想要停止編目。在 [狀態] 欄中的值變更為 [閒置所選取的內容來源。Stop Crawl. You must click OK to confirm that you want to stop the crawl. The value in the Status column changes to Idle for the selected content source.

      注意

      如果您停止進行中的完整或累加編目 (例如,以便您可以變更搜尋拓撲),下次該內容來源發生編目時,搜尋系統會自動執行完整編目。If you stop a full or incremental crawl that is in progress (for example, so that you can change the search topology), the next time a crawl occurs for that content source, the Search system automatically performs a full crawl.

停用連續編目Disable continuous crawls

從 [管理內容來源] 頁面上,可啟用或停用連續編目,但不能已暫停或繼續。如果您想要暫停仍在連續編目模式中的內容來源,請先停用連續編目。如需詳細資訊,請參閱管理連續編目 SharePoint Server 中From the Manage Content Sources page, continuous crawls can be enabled or disabled, but they cannot be paused or resumed. If you want to pause a content source that is currently in continuous crawl mode, disable continuous crawl first. For more information, see Manage continuous crawls in SharePoint Server.