設定雲端混合式搜尋 - 藍圖Configure cloud hybrid search - roadmap

了解如何在 SharePoint Server 環境中設定 Search Service 應用程式,並將其連線到在 Office 365 中的搜尋索引,來設定 SharePoint Server 的雲端混合式搜尋Learn how to configure cloud hybrid search for SharePoint Server by setting up a cloud Search service application in your SharePoint Server environment and connecting it to your search index in Office 365.

本文將說明如何在具有 SharePoint Server 和適用於 Office 365 企業版的 SharePoint Online 環境中設定雲端混合式搜尋。有了雲端混合式搜尋解決方案,您就可以在 Office 365 的搜尋索引中,新增來自所有內容 (包括內部部署內容) 的已編目中繼資料。當使用者在 Office 365 中搜尋時,他們會同時從內部部署和 Office 365 內容取得搜尋結果。This article describes how you set up cloud hybrid search in an environment with SharePoint Server and SharePoint Online for Office 365 for enterprises. With the cloud hybrid search solution, you add crawled metadata from all your content, including on-premises content, to your search index in Office 365. When users search in Office 365, they get search results from both on-premises and from Office 365 content.

注意

如果您是 Office 365 的專用客戶,要設定雲端混合式搜尋需要 SharePoint 服務工程人員的參與。請連絡您的 Microsoft 服務提供經理以尋求協助。如果不確定您是哪種類型的客戶,則可以放心地忽略此附註。If you are an Office 365 Dedicated customer, setting up cloud hybrid search requires engagement of SharePoint Service Engineering staff. Contact your Microsoft Service Delivery Manager for assistance. If you aren't sure what type of customer you are, you can safely disregard this note.

開始之前Before you start

要完成設定步驟,您將需要這些項目:To complete the configuration steps you'll need these items:

請遵循下列步驟:Follow these steps:

當您設定不同的混合式解決方案時,如果您已完成步驟 1,請略過該步驟並移至下一步驟。If you already completed step 1 when you configured a different hybrid solution, skip that step and go to the next.

步驟Step
描述Description
1.針對混合式 SharePoint 設定 Office 3651. Configure Office 365 for SharePoint hybrid
為混合式環境設定您的 Office 365 租用戶,包括註冊您的網域、設定 UPN 尾碼,並與 Office 365 同步內部部署使用者帳戶。Configure your Office 365 tenant for a hybrid environment, including registering your domain, configuring UPN suffixes, and synchronizing your on-premises user accounts with Office 365.
2.在 SharePoint Server 中建立 Search Service 應用程式2. Create a cloud Search service application in SharePoint Server
在裝載 SharePoint Server管理中心 網站的應用程式伺服器陣列上執行混合式選擇器精靈。Run the Hybrid Picker wizard on the application farm that hosts the SharePoint ServerCentral Administration website.
或者,執行 CreateCloudSSA.ps1 PowerShell指令碼Alternatively, run the CreateCloudSSA.ps1 PowerShellscript
3. 將雲端 Search Service 應用程式連線到 Office 365 租用戶3. Connect your cloud Search service application to your Office 365 tenant
如果您是使用混合式選擇器精靈來建立雲端搜尋服務應用程式,請省略這個步驟。混合式選擇器會自動連線到您的環境。 If you used the Hybrid Picker wizard to create a cloud Search service application, skip this step. The Hybrid Picker automatically connected your environments.
否則,執行 Onboard-CloudHybridSearch.ps1 PowerShell 指令碼,以將雲端 SSA 和 Office 365 租用戶上架到雲端混合式搜尋。該指令碼會設定雲端 SSA 以便與 Office 365 租用戶互動,也會設定伺服器對伺服器驗證。 Otherwise, run the Onboard-CloudHybridSearch.ps1 PowerShell script to onboard your cloud SSA and Office 365 tenant to cloud hybrid search. The script sets up the cloud SSA to interact with the Office 365 tenant and also sets up server-to-server authentication.
4. 設定 SharePoint Server 中的搜尋架構,以進行雲端混合式搜尋4. Set up search architecture in SharePoint Server for cloud hybrid search
這是選擇性步驟。如果規劃了預設搜尋架構以外的搜尋架構,請加以設定。This step is optional. If you planned a search architecture that's different from the default one, set up the planned search architecture.
5.建立雲端混合式搜尋要編目的內容來源5. Create a content source for cloud hybrid search to crawl
我們建議您先新增一個小型的檔案共用,您可以稍後新增更多的內部部署內容。We recommend adding a small file share first, you can add more on-premises content later.
6.設定 Office 365 中的個別搜尋中心以驗證混合式搜尋結果6. Set up a separate Search Center in Office 365 to validate hybrid search results
您可以在 Office 365 中設定個別的搜尋中心,使現有的搜尋體驗保持不變,因此您可以驗證和調整新的搜尋體驗。Keep the existing search experience unchanged by setting up a separate Search Center in Office 365 so you can validate and tune the new search experience there.
7.開始完整編目內部部署內容以供雲端混合式搜尋7. Start a full crawl of on-premises content for cloud hybrid search
編目完成時,您的內部部署內容會出現在 Office 365 和 Office Delve 驗證搜尋中心的搜尋結果中。When the crawl completes, your on-premises content shows up in the search results in your validation Search Center in Office 365 and in Office Delve.
8.確認雲端混合式搜尋可以運作8. Verify that cloud hybrid search works
前往 Office 365 中 SharePoint Online 的搜尋中心,並輸入此查詢:「IsExternalContent:true」。您得到的結果應該會顯示來自已編目內部部署內容來源的內容。Go to your Search Center in SharePoint Online in Office 365 and enter this query: "IsExternalContent:true". The results you get should show content from the on-premises content source that you've crawled.
9.調整雲端混合式搜尋9. Tune cloud hybrid search
設定並調整您為使用者所規劃的搜尋體驗。Set up and tune the search experiences you've planned for your users.
10.移除驗證搜尋中心,並將所有使用者公開到混合式搜尋結果。10. Remove the validation Search Center and expose all users to hybrid search results.
在 Office 365 中設定搜尋中心和任何網站以使用預設結果來源,並以經過調整的搜尋體驗來設定預設結果來源。您的內部部署內容會出現在 Office 365 的搜尋中心、Office 365 的網站搜尋和 Office Delve 的搜尋結果中。Set your Search Center and any site search in Office 365 to use the default result source and set up the default result source with the search experiences that you've tuned. Your on-premises content shows up in the search results in your Search Center in Office 365, site search in Office 365, and in Office Delve.

在 SharePoint Server 中建立 Search Service 應用程式Create a cloud Search service application in SharePoint Server

雲端 SSA 可讓您編目來自內部部署內容的中繼資料,並將其新增到 Office 365 的搜尋索引中。每個搜尋伺服器陣列都只能有一個雲端 SSA,但可以同時有多個與雲端 SSA 結合的 SSA。您無法將現有的 SSA 轉換為雲端 SSA。The cloud SSA lets you crawl and add metadata from on-premises content to the search index in Office 365. Each search farm can have only one cloud SSA, but can have multiple SSAs in combination with the cloud SSA. You can't convert an existing SSA to a cloud SSA.

注意

如果您的組織會限制電腦連線到網際網路,則您必須允許雲端混合式搜尋存取所使用的端點 (FQDN)。將端點納入連出允許清單中。文章《Office 365 URL 與 IP 位址範圍》的<SharePoint Online>一節會列出端點。If your organization restricts computers from connecting to the internet, you need to allow access to the endpoints (FQDNs) that cloud hybrid search uses. Include the endpoints in your outbound allow lists. The endpoints are listed in the SharePoint Online section of the article Office 365 URLs and IP address ranges and are marked for use with Hybrid Search.

使用混合式選擇器來連線 SharePoint Server 和 Office 365 環境,並建立雲端搜尋服務應用程式。Use the Hybrid Picker to connect your SharePoint Server and Office 365 environments and create the cloud Search service application.

在裝載 SharePoint Server管理中心 網站的應用程式伺服器上:On the application server that hosts the SharePoint ServerCentral Administration website:

  1. 以伺服器陣列管理員的身份登入。Log on to the console as a farm administrator.

  2. 以全域管理員的身份連線到 Office 365。Connect to Office 365 as a global administrator.

  3. 瀏覽到 https://configure.office.com/scenario.aspx?Sid=54,以下載、安裝及啟動混合式選擇器精靈。Navigate to https://configure.office.com/scenario.aspx?Sid=54 to download, install, and start the Hybrid Picker wizard.

  4. 遵循混合式選擇器中的提示,然後選取混合式搜尋功能。Follow the prompts in the Hybrid Picker and select the hybrid search feature.

混合式選擇器能讓您選擇要在裝載 [SharePoint Server 管理中心] 網站的應用程式伺服器上,使用預設的搜尋架構的雲端 SSA,或者要在 兩個 應用程式伺服器上使用搜尋架構的雲端 SSA (支援 高可用性)The Hybrid Picker lets you choose between a cloud SSA with the default search architecture on the application server that hosts the SharePoint Server Central Administration website, or a cloud SSA with a search architecture on two application servers (supports high availability)

混合式選擇器能為您省下時間,因為它也會將雲端 SSA 連接至您的 Office 365 租用戶 (步驟 3)。The Hybrid Picker saves you time because it also connects the cloud SSA to your Office 365 tenant (step 3).

建立雲端搜尋服務應用程式的其他方法Alternative methods for creating a cloud Search service application

您也可以建立雲端 SSA,如下所示:You can also create the cloud SSA as follows:

  • 您可以從 Microsoft 下載中心下載 CreateCloudSSA.ps1 Powershell 指令碼,並加以執行。該指令碼能讓您選擇要在裝載 [SharePoint Server 管理中心] 網站的應用程式伺服器上,使用預設的搜尋架構的雲端 SSA,或者要在兩個應用程式伺服器上使用搜尋架構的雲端 SSA (支援 高可用性)。You can download the CreateCloudSSA.ps1 Powershell script from the Microsoft Download Center and run it. The script lets you choose between a cloud SSA with the default search architecture on the application server that hosts the SharePoint Server Central Administration website, or a cloud SSA with a search architecture on two application servers (supports high availability).

  • 您可以使用 SharePoint 管理中心網站,如同您使用 SSA 一樣。使用此方法可取得雲端 SSA,以及安裝在裝載 SharePoint Server 管理中心網站應用程式伺服器上的預設搜尋架構。You can use the SharePoint Central Administration website, just like you would for an SSA. With this method you get a cloud SSA and the default search architecture installed on the application server that hosts the SharePoint Server Central Administration website.

如需透過執行 CreateCloudSSA.ps1 PowerShell 指令碼來建立雲端 SSA,請遵循以下指示。To create a cloud SSA by running the CreateCloudSSA.ps1 PowerShell script, follow the instructions below.

注意

當您安裝 SharePoint Server 時,您執行安裝所用的使用者帳號會獲得適當的權限執行 Windows PowerShell Cmdlet。When you installed SharePoint Server, the user account from which you ran the installation was granted the appropriate permissions to run Windows PowerShell cmdlets.

在裝載 SharePoint Server管理中心 網站的應用程式伺服器上,依照下列步驟執行:On the application server that hosts the SharePoint ServerCentral Administration website , follow these steps:

  1. 請您確定在安裝 SharePoint Server 時使用相同的使用者帳戶。該帳戶會獲得適當的權限以執行 Window Powershell cmdlets。Make sure you're using the same user account as when you installed SharePoint Server. This account is granted the appropriate permissions to run Window Powershell cmdlets.

  2. 請以系統管理員權限啟動 Windows Powershell 主控台。按一下 開始 鍵入 PowerShell, 接著以滑鼠右鍵按一下 Windows PowerShell ,然後選取 以系統管理員身分執行Start the Windows Powershell console with administrator privileges: Click Start, type PowerShell, and then right-click Windows PowerShell and select Run as administrator.

  3. 執行 CreateCloudSSA.ps1 PowerShell 指令碼。Run the CreateCloudSSA.ps1 PowerShell script.

  4. 出現提示時,請鍵入:When prompted, type:

    • 在 SharePoint Server 搜尋伺服器上的主機名稱。The host name of the search server in SharePoint Server.

    • 如果您已規劃高可用性搜尋,則使用第二個搜尋伺服器的主機名稱。If you've planned highly available search, the host name of the second search server.

    • Search Service 帳戶 (請依此格式:網域\使用者名稱)。The Search service account in this format: domain\username.

    • 您所選擇的雲端 SSA 名稱。A name of your choice for the cloud SSA.

    • SharePoint Server 的資料庫伺服器名稱。The name of the database server in SharePoint Server

  5. 確認您看到已成功建立雲端 SSA 的訊息。Verify that you see the message that the cloud SSA was successfully created.

我可以製作自己的 Windows PowerShell 指令碼,來建立雲端 SSA 嗎?Can I make my own Windows PowerShell script for creating a cloud SSA?

如果您想要製作自己的 PowerShell 指令碼來建立雲端 SSA,請先研究我們提供的 CreateCloudSSA.ps1 PowerShell 指令碼。請注意,建立雲端 SSA 與 SSA 之間的差異,在於 CloudIndex 屬性的值。建立雲端 SSA 時會設定 CloudIndex: true (稍後無法變更此值)。CloudIndex 為 True 時,已編目中繼資料「不會」**** 新增到內部部署搜尋索引中。不過,這並不表示中繼資料會新增到 Office 365 搜尋索引中,您必須先將雲端 SSA 上架到雲端混合式搜尋才行 (請參閱<將雲端 Search Service 應用程式連線到 Office 365 租用戶>)。確保您的 PowerShell 指令碼:If you want to make your own PowerShell script for creating a cloud SSA, first study the CreateCloudSSA.ps1 PowerShell script we've provided. Notice that the difference between creating a cloud SSA and an SSA is the value of the property CloudIndex. You set CloudIndex: true when you create a cloud SSA (you can't change this value later). When CloudIndex is true, crawled metadata is not added to the on-premises search index. However, this doesn't mean that the metadata is added to the Office 365 search index, you have to onboard the cloud SSA to cloud hybrid search for that to happen (see Connect your cloud Search service application to your Office 365 tenant). Ensure that your PowerShell script:

  • 測試 Search Service 帳戶是否為受管理的帳戶,若不是,請將其設為受管理帳戶。Tests that the Search service account is a managed account, and makes it a managed account if it isn't.

  • 在其使用 New-SPEnterpriseSearchServiceApplication PowerShell Cmdlet 時,納入 -CloudIndex $true 作為引數。Includes -CloudIndex $true as an argument when it uses the New-SPEnterpriseSearchServiceApplication PowerShell cmdlet.

將雲端 Search Service 應用程式連線到 Office 365 租用戶Connect your cloud Search service application to your Office 365 tenant

注意

如果您使用混合式選擇器來建立雲端搜尋服務應用程式,就可以省略這個步驟。If you used the Hybrid Picker to create a cloud Search service application, then you can skip this step.

這個章節會指引您如何將雲端 SSA 和 Office 365 租用戶上架到雲端混合式搜尋,並涵蓋:This section guides you how to onboard your cloud SSA and Office 365 tenant to cloud hybrid search and covers:

  • 將雲端 SSA 和 Office 365 租用戶連線 - 雲端 SSA 和 Office 365 租用戶正確連線時,雲端混合式搜尋解決方案就可以從內部部署內容,將已編目中繼資料新增到 Office 365 的搜尋索引中。上架雲端 SSA 後,只要檢查便可看見您的雲端 SSA IsHybrid 屬性值為 1。您可執行此 PowerShell 命令來檢查:$ssa.GetProperty("CloudIndex")。Connecting your cloud SSA and your Office 365 tenant - When your cloud SSA and your Office 365 tenant are correctly connected, the cloud hybrid search solution is ready to add crawled metadata from on-premises content to the search index in Office 365. When you've onboarded your cloud SSA, check to see that your cloud SSA has the value 1 for the property IsHybrid. You check by running this PowerShell command: $ssa.GetProperty("CloudIndex").

  • 設定伺服器對伺服器驗證 - 伺服器對伺服器驗證可允許伺服器代表使用者互相存取並要求資源。Configuring server-to-server authentication - Server-to-server authentication allows servers to access and request resources from one another on behalf of users.

在裝載 SharePoint Server管理中心 網站的應用程式伺服器上,依照下列步驟執行:On the application server that hosts the SharePoint ServerCentral Administration website, follow these steps:

  1. 確定伺服器的日期與時間已經與 SharePoint Server 伺服器陣列中的其他伺服器同步。Ensure that the date and time of the server is synchronized with the other servers in the SharePoint Server farm.

  2. 從 Microsoft 下載中心下載並安裝適用於 IT 專業人員的 Microsoft Online Service 登入小幫手 RTWDownload and install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW from the Microsoft Download Center.

  3. 從 PowerShell 資源庫中下載並安裝最新版的適用於 Windows PowerShell 的 Microsoft Azure Active Directory 模組Download and install the latest version of the Azure Active Directory Module for Windows PowerShell from the PowerShell Gallery.

  4. 從 Microsoft 下載中心下載 OnBoard-CloudHybridSearch.ps1 PowerShell 指令碼。Download the OnBoard-CloudHybridSearch.ps1 PowerShell script from the Microsoft Download Center.

  5. 如果您的環境是 Office 365 商務版、Office 365 企業版、Office 365 教育版、21Vianet 所操作的 Office 365、Office 365 Germany 或 Office 365 US Government Defense,請開啟提高權限的 PowerShell 提示,然後執行 OnBoard-CloudHybridSearch.ps1 PowerShell 指令碼,如下所示:If your environment is Office 365 Business, Office 365 Enterprise, Office 365 Education, Office 365 operated by 21Vianet, Office 365 Germany, or Office 365 US Government Defense, open an elevated PowerShell prompt, and run the OnBoard-CloudHybridSearch.ps1 UNRESOLVED_TOKEN_VAL( PowerShell_2nd_NoVer) script as follows:

    Import-Module MSOnline
    
    .\OnBoard-CloudHybridSearch.ps1 -PortalUrl <SPOTenantPortalUrl> -CloudSsaId <CloudSSANameCreatd>
    

    SPOTenantPortalUrl 是您公司或組織的 SharePoint Online 入口網站 URL,而 ** CloudSsaID ** 是您稍早建立的雲端 SSA 名稱。SPOTenantPortalUrl is the URL of your company's or organization's SharePoint Online portal, and ** CloudSsaID ** is the name of the cloud SSA that you created earlier.

  6. 如果您的環境是 Office 365 US Government Communication,請開啟提高權限的 PowerShell 提示,然後執行 OnBoard-CloudHybridSearch.ps1 PowerShell 指令碼,如下所示:If your environment is Office 365 US Government Communication, open an elevated PowerShell prompt, and run the OnBoard-CloudHybridSearch.ps1 PowerShell script as follows:

    Import-Module MSOnline
    
    .\OnBoard-CloudHybridSearch.ps1 -PortalUrl <SPOTenantPortalUrl> -CloudSsaId <CloudSSANameCreatd> -IsPortalForUSGovernment $true
    

    SPOTenantPortalUrl 是您公司或組織的 SharePoint Online 入口網站 URL,而 ** CloudSsaID ** 是您稍早建立的雲端 SSA 名稱。SPOTenantPortalUrl is the URL of your company's or organization's SharePoint Online portal, and ** CloudSsaID ** is the name of the cloud SSA that you created earlier.

  7. 系統提示時,請鍵入您 Office 365 租用戶的全域管理員認證。When prompted, type the global admin credentials for your Office 365 tenant.

如果您計劃要使用建立雲端 SSA 時所取得的預設搜尋架構,便可以跳過此步驟。If you planned to use the default search architecture that you get when creating a cloud SSA, you can skip this step.

否則,請確定您已經準備好計劃的搜尋架構所需的伺服器,以進行雲端混合式搜尋,並依照計劃的搜尋架構指引進行設定。本指南也適用於雲端混合式搜尋。Otherwise, ensure that you have prepared the servers you need for your planned search architecture for cloud hybrid search, and follow the guidance for setting up your planned search architecture. This guidance is applicable also for cloud hybrid search.

建立雲端混合式搜尋要編目的內容來源Create a content source for cloud hybrid search to crawl

我們建議先從小型內部部署內容來源 (例如小型的檔案共用) 開始進行測試。您可以稍後新增更多的內部部署內容。We recommend that you start with a small on-premises content source, for example a small file share, to test. You can add more on-premises content sources later.

  1. 請確認執行此程序的使用者帳戶為雲端 SSA 的管理員。Verify that the user account that is performing this procedure is an administrator for the cloud SSA.

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

  3. 在 [管理服務應用程式] 頁面上,按一下雲端 SSA。On the Manage Service Applications page, click the cloud SSA.

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

  5. 在 [管理內容來源] 頁面上,按一下 [新增內容來源]*On the Manage Content Sources page, click *New Content Source.

  6. 在 [新增內容來源] 頁面上的 [名稱]**** 區段中,於 [名稱]**** 方塊中輸入新內容來源的名稱。On the Add Content Source page, in the Name section, in the Name box, type a name for the new content source.

  7. 在 [內容來源類型]**** 區段中,選取您要編目的內容類型。In the Content Source Type section, select the type of content that you want to crawl.

  8. 在 [開始位址]**** 區段的 [在下面鍵入起始位址 (每行一個)]**** 方塊中,輸入編目程式要開始編目的 URL。In the Start Addresses section, in the Type start addresses below (one per line) box, type the URLs from which the crawler should begin crawling.

  9. 在 [編目設定]**** 區段中,選取您想要的編目行為。In the Crawl Settings section, select the crawling behavior that you want.

  10. 在 [編目排程]**** 區段中,若要指定完整編目的排程,請從 [完整編目]**** 清單選取已定義的排程。無論內容是否變更,完整編目都會編目內容來源指定的所有內容。若要定義完整編目排程,請按一下 [建立排程]*In the *Crawl Schedules section, to specify a schedule for full crawls, select a defined schedule from the Full Crawl list. A full crawl crawls all content that is specified by the content source, regardless of whether the content has changed. To define a full crawl schedule, click Create schedule.

  11. 若要指定累加編目的排程,請從 [累加編目]**** 清單選取已定義的排程。累加編目會編目內容來源指定的內容中,自上次編目以來有所變更的內容。若要定義排程,請按一下 [建立排程]*。您可以按一下 [編輯排程],以變更已定義的排程。To specify a schedule for incremental crawls, select a defined schedule from the **Incremental Crawl list. An incremental crawl crawls content that is specified by the content source that has changed since the last crawl. To define a schedule, click **Create schedule. You can change a defined schedule by clicking **Edit schedule*.

  12. 若要設定此內容來源的優先順序,請在 [內容來源優先順序]**** 區段中的 [優先順序]**** 清單上,選取 [一般]**** 或 [高]*To set the priority of this content source, in the *Content Source Priority section, on the Priority list, select Normal or High.

  13. 按一下 [確定]*Click *OK.

設定 Office 365 中的個別搜尋中心以驗證混合式搜尋結果Set up a separate Search Center in Office 365 to validate hybrid search results

設定雲端混合式搜尋並完成內部部署內容的完整編目後,Office 365 的現有搜尋中心以及 Office Delve 會自動顯示內部部署和線上搜尋結果。啟動完整編目之前,建議您建立新的個別搜尋中心。加以設定來顯示內部部署和線上搜尋結果。因此,您可以驗證和調整不同搜尋中心內的新搜尋經驗,同時保持 現有 搜尋中心不變。After you've set up cloud hybrid search and completed a full crawl of your on-premises content, your existing Search Center in Office 365 as well as Office Delve will automatically show both on-premises and online search results. Before you start the full crawl, we recommend that you create a new, separate Search Center. Set it up to show the mixed on-premises and online search results. This way you can validate and tune the new search experience in the separate Search Center, while you keep the existing Search Center unchanged.

請依照下列步驟,在 Office 365中設定個別的搜尋中心:Follow these steps to set up a separate Search Center in Office 365:

  1. 建立結果來源,從這個租用戶的搜尋索引中擷取搜尋結果,但使用 [查詢轉換]**** 將搜尋結果限制為 Office 365 內容。將預設查詢轉換變更為 "{?{searchTerms} NOT IsExternalContent:true}"。這方法可行,是因為在 SharePoint Online 搜尋結構描述中受管理屬性 IsExternalContent** 設定為 True 的內容是內部部署內容 (請參閱<關於 IsExternalContent 受管理屬性>)。Create a result source that retrieves search results from the search index of this tenant, but limits search results to Office 365 content by using a Query Transform. Change the default query transform to "{?{searchTerms} NOT IsExternalContent:true}". This works because content that has the managed property IsExternalContent set to true (see About the IsExternalContent managed property) in the SharePoint Online search schema, is on-premises content.

  2. 在 Office 365 搜尋中心內修改搜尋結果網頁組件,以便使用您剛建立的結果來源。您的使用者在這個搜尋中心可以得到原始的搜尋體驗。Modify the Search Results Web Part in your Office 365 Search Center to use the result source that you just created. Your users get the original search experience in this Search Center.

  3. 建立使用預設結果來源的第二個 Office 365 搜尋中心。當您已執行完整編目後,這個搜尋中心會有混合式搜尋結果。在這個搜尋中心內驗證和調整新的搜尋體驗。Create a second Office 365 Search Center that uses the default result source. This Search Center has hybrid search results when you've run a full crawl. Validate and tune your new search experience in this Search Center.

  4. 設定存取,只讓測試人員和管理員可以存取第二個 Office 365 搜尋中心。Set up access so only testers and administrators have access to the second Office 365 Search Center.

以下是驗證環境的範例:Here's an example of a validation environment:下圖顯示內容如何從 SharePoint Server 內容伺服器陣列和 Office 365 進入 Office 365 索引。Office 365 的標準搜尋中心只會從搜尋索引擷取 Office 365 結果,而驗證搜尋 ce

  1. 內部部署內容。在編目期間,內容會新增到 Office 365 索引中。On-premises content. During crawl, content is added to the Office 365 index.

  2. Office 365 內容。在編目期間,內容會新增到 Office 365 索引中。Office 365 content. During crawl, content is added to the Office 365 index.

  3. 預設 (或現有) 的 Office 365 搜尋中心。這個搜尋中心會使用自訂結果來源,將搜尋結果限制為僅限 Office 365 內容。Default (or existing) Office 365 Search Center. This Search Center uses the custom result source that limits search results to only Office 365 content.

  4. 第二個 Office 365 搜尋中心,在此您可以驗證和調整混合式搜尋結果顯示的方式。這個搜尋中心會使用預設的結果來源,並顯示來自內部部署和 Office 365 的內容。Second Office 365 Search Center, where you validate and tune how hybrid search results are shown. This Search Center uses the default result source and shows search results from both on-premises and Office 365 content.

關於 IsExternalContent 受管理屬性About the IsExternalContent managed property

在此環境中有個重要部分,就是您在預設或現有的 Office 365 搜尋中心所使用的自訂結果來源。這個結果來源可使搜尋體驗保持不變,同時讓您驗證和調整混合式搜尋結果顯示的方式。而這個自訂結果來源中有個重要部分,就是 SharePoint Online 搜尋結構描述中的 IsExternalContent 受管理屬性。在設定雲端混合式搜尋之前,這個受管理的屬性是空的。但在設定了雲端混合式搜尋,並編目了內部部署內容後,所有內部部署內容的這個屬性就會設定為 True。因此,您可以使用 NOT IsExternalContent:true ,限制搜尋結果只顯示 Office 365 內容。An important part in this environment is the custom result source you use in the default or existing Office 365 Search Center. This result source keeps the search experience unchanged while you validate and tune how hybrid search results are displayed. An important piece in this custom result source is the IsExternalContent managed property in the SharePoint Online search schema. Before you set up cloud hybrid search, this managed property is empty. But, after you've set up cloud hybrid search and crawled your on-premises content, this property is set to true for all on-premises content. You can therefore limit search results to show only Office 365 content with NOT IsExternalContent:true .

開始內容來源的完整編目。請參閱<在 SharePoint Server 2013 中啟動、暫停、繼續或停止編目>,或依照下列步驟:Start a full crawl of the content source. See Start, pause, resume, or stop a crawl in SharePoint Server 2013 or follow these steps:

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

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

  3. 在 [管理服務應用程式] 頁面上,按一下雲端搜尋服務應用程式。On the Manage Service Applications page, click the cloud 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 to crawl, click the arrow and then click *Start Full Crawl. The value in the Status column changes to Crawling Full for the selected content source.

確認雲端混合式搜尋可以運作Verify that cloud hybrid search works

完整編目完成後,請確認您的內部部署內容會出現在 Office 365 驗證搜尋中心的搜尋結果中。After the full crawl completes, verify that your on-premises content shows up in the search results in your validation Search Center in Office 365.

  1. 以您的工作或學校帳戶登入 Office 365。請確定:Log in to Office 365 with your work or school account. Make sure that:

    • 您可以存取驗證搜尋中心。You have access to the validation Search Center.

    • 您可以存取已編目內容來源中的內容。如果您已執行此藍圖的步驟 1,應該可以存取。 You have access to the content in the content source that you have crawled. If you performed step 1 of this roadmap, you should have access.

    • 貴組織尚未使用 Windows Server Active Directory (AD) 中的預設安全性群組 (例如「網域使用者」安全性群組),將使用者存取權限指派給內部部署內容,請參閱<規劃 SharePoint 的雲端混合式搜尋>。Your organization hasn't assigned user access rights to the on-premises content by using one of the default security groups in Windows Server Active Directory (AD), for example the Domain Users security group, see Plan cloud hybrid search for SharePoint.

  2. 在驗證搜尋中心內搜尋 IsExternalContent:1 。您得到的結果應該會顯示來自已編目內部部署內容來源的內容。Search for IsExternalContent:1 in the validation Search Center. The results you get should show content from the on-premises content source that you've crawled.

  3. 確認您的內部部署內容會出現在搜尋結果中。Verify that your on-premises content shows up in the search results.

在設定了雲端混合式搜尋,並確認可在 Office 365 的驗證搜尋中心內取得來自內部部署內容的搜尋結果後,請設定您規劃的搜尋體驗。After you've set up cloud hybrid search and verified that you get search results from on-premises content in your validation Search Center in Office 365, set up the search experiences that you planned.

您可能會發現本指南很有用:You might find this guidance useful:

設定並驗證計劃的搜尋體驗後,您可能會想要清除在使用這項工作期間,Office 365 中來自內部部署內容的中繼資料搜尋索引。這項工作的運作方式與您在 SharePoint Server 中所熟悉的運作方式不同。After setting up and validating the planned search experiences, you might want to clear your search index in Office 365 for metadata from the on-premises content you've used during this work. This works differently from what you might be familiar with from SharePoint Server.

在 SharePoint 管理中心網站 中您可以使用 SSA 的「索引重設」選項,從搜尋索引中移除所有內容。這個選項不適用於雲端混合式搜尋,因為在 SharePoint Server 中的雲端 SSA 與 Office 365 中的搜尋索引之間並未直接通訊。如果您只想要移除部分內部部署中繼資料,請移除該內部部署內容來源,或建立不會編目檔案 URL 的編目規則。如果您需要在 Office 365 中從搜尋索引中移除所有來自內部部署內容的中繼資料,請向 Microsoft 支援服務開啟票證。In the SharePoint Central Administration website you can use the option "Index reset" for an SSA to remove all content from the search index. This option does not work for cloud hybrid search because there is no direct communication between the cloud SSA in SharePoint Server and the search index in Office 365. If you only want to remove some on-premises metadata, remove that on-premises content source, or create a crawl rule that doesn't crawl the URL of a file. If you need to remove all metadata from on-premises content from the search index in Office 365, open a ticket with Microsoft Support.

深入了解 SharePoint 的雲端混合式搜尋Learn about cloud hybrid search for SharePoint

規劃 SharePoint 的雲端混合式搜尋Plan cloud hybrid search for SharePoint