利用混合式搜尋顯示內部部署 SharePoint 中 Office 365 的結果Show results from Office 365 in on-premises SharePoint with cloud hybrid search

了解如何在從具有雲端混合式搜尋的 SharePoint Server 網站進行搜尋時,顯示 Office 365 搜尋索引的結果。Learn how to show results from the Office 365 search index when searching from SharePoint Server sites with cloud hybrid search.

在您設定雲端混合式搜尋之後,您的使用者在 Office 365 中使用搜尋中心時,會取得內部部署和 Office 365 內容的搜尋結果。不過,SharePoint Server 中文件庫內的現有搜尋 (例如小組網站) 會在您設定雲端混合式搜尋時停止傳回結果。如果您的使用者需要從小組網站進行搜尋,您可以設定從 SharePoint Server 小組網站進行搜尋,以顯示 Office 365 中搜尋索引的結果。您可使用 Search Service 應用程式以達成此設定。請注意,由於搜尋索引和搜尋中心位於相同的環境中,因此從 Office 365 中的搜尋中心進行搜尋,會比從 SharePoint Server 中的文件庫進行搜尋要快。After you've set up cloud hybrid search, your users get search results from both on-premises and Office 365 content when they use the search center in Office 365. However, your existing search in document libraries in SharePoint Server, such as Team Sites, stops returning results when you've set up cloud hybrid search. If your users need to search from Team Sites, you can set up search from SharePoint Server Team Sites to show results from the search index in Office 365. You use the cloud Search service application to achieve this. Note that searching from a Search Center in Office 365 will be faster than searching from a document library in SharePoint Server because the search index and the search center are in the same environment.

以下是雲端混合式搜尋解決方案的概觀。淺灰色線條代表您依照本文中的步驟所設定的項目。Here's an overview of the cloud hybrid search solution. The light grey lines represent what you're setting up by following the steps in this article.

下圖顯示資訊會從 SharePoint Server 2013 的站台搜尋方塊,透過雲端 SSA 流向 Office 365 的索引並回到站台搜尋方塊。

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

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

  2. 在雲端搜尋伺服器陣列中,建立結果來源以定義如何在 Office 365 中取得搜尋索引的搜尋結果In the cloud search farm, create a result source that defines how to get search results from the search index in Office 365.

  3. 在雲端搜尋伺服器陣列中,將結果來源設定為雲端搜尋服務應用程式的預設結果來源In the cloud search farm, set the result source as the default result source for the cloud Search service application.

  4. 若您現有的內部部署文件庫位於 SharePoint Server 2010 和/或 SharePoint Server 2013 中,請設定查詢同盟,方法是發佈雲端搜尋服務應用程式 (雲端 SSA),讓 SharePoint Server 2010 和/或 SharePoint Server 2013 可以使用雲端 SSA。If your existing on-premises document libraries are in SharePoint Server 2010 and/or SharePoint Server 2013, Set up query federation by publishing the cloud Search service application (cloud SSA) so that SharePoint Server 2010 and/or SharePoint Server 2013 can consume the cloud SSA.

建立結果來源以定義如何在 Office 365 中取得搜尋索引的搜尋結果Create a result source that defines how to get search results from the search index in Office 365

  1. 確認您用來執行此程序的使用者帳戶是雲端 SSA 的管理員。Verify that the user account that you use to perform this procedure is an administrator for the cloud SSA.

  2. 在雲端搜尋伺服器陣列部署中,在管理中心的 [應用程式管理]**** 區段中按一下 [管理服務應用程式]*In Central Administration, in the *Application Management section, click Manage service applications.

  3. 按一下您要在其中新增結果來源的雲端 SSA。Click the cloud SSA to which you want to add a result source.

  4. 在雲端 SSA 的 [搜尋管理] 頁面上,按一下 [快速啟動] 中的 [結果來源]*On the Search Administration page for the cloud SSA, in the Quick Launch, click *Result Sources.

  5. 在「管理結果來源」**** 頁面中,按一下 [新的結果來源]*On the *Manage Result Sources page, click New Result Source.

  6. 在 [新增結果來源]**** 頁面上,執行下列動作:On the Add Result Source page, do the following:

  7. 在 [一般資訊]**** 區段的 [名稱]**** 文字方塊中,輸入新結果來源的描述 (例如,「Office 365 搜尋索引」)**。In the General Information section, in the Name text box, type a name for the new result source—for example, Office_365 search index.

  8. (選用) 在 [一般資訊]**** 區段的 [描述]**** 文字方塊中,輸入新結果來源的描述。(Optional) In the General Information section, in the Description text box, type a description of the new result source.

    將滑鼠指標放在特定設定頁面的結果來源上時,此描述將會顯示為工具提示。This description will appear as a tooltip when the pointer rests on the result source on certain configuration pages.

  9. 在 [通訊協定]**** 區段中,選取 [遠端 SharePoint]*In the *Protocol section, select Remote SharePoint.

  10. 在 [遠端服務 URL]**** 區段中,輸入您要從 SharePoint Online 中取得搜尋結果的根網站集合位址,例如 https://adventure-works.sharepoint.com。In the Remote Service URL section, type the address of the root site collection in SharePoint Online that you want to get search results from.

  11. 在 [類型]**** 區段中,選取 [SharePoint 搜尋結果]*In the *Type section, select SharePoint Search Results.

  12. 在 [查詢轉換]**** 區段中,保留預設設定。In the Query Transform section, keep the default setting.

  13. 在 [認證資訊]**** 區段中,選取 [預設驗證]*In the *Credentials Information section, select Default Authentication.

  14. 按一下 [確定]**** 儲存新的結果來源。Click OK to save the new result source.

將結果來源設定為 Cloud Search Service 應用程式的預設結果來源Set the result source as the default result source for the cloud Search service application

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

  2. 在雲端搜尋伺服器陣列部署中,在管理中心的 [應用程式管理]**** 區段中按一下 [管理服務應用程式]*In Central Administration, in the *Application Management section, click Manage service applications.

  3. 按一下您要將其結果來源設為預設值的雲端 SSA。Click the cloud SSA for which you want to set the result source as default.

  4. 在 [搜尋管理]**** 頁面的 [查詢與結果]**** 區段中,按一下 [結果來源]*On the *Search Administration page, in the Queries and Results section, click Result Sources.

  5. 在「管理結果來源」**** 頁面,指向您要設為預設值的結果來源,按一下顯示的箭頭,然後按一下 [設為預設值]*On the *Manage Result Sources page, point to the result source that you want to set as default, click the arrow that appears, and then click Set as Default.

設定查詢同盟Set up query federation

若要設定查詢同盟,您必須發佈雲端 SSA,以讓 SharePoint Server 2010 或 SharePoint Server 2013 使用它。如需這種方法的概觀,請參閱<跨 SharePoint Server 伺服器陣列共用服務應用程式>,然後選取使用環境的 SharePoint Server 版本文章。To set up query federation you have to publish the cloud SSA so that it can be consumed by SharePoint Server 2010 or SharePoint Server 2013. For an overview of this approach, see Share service applications across farms in SharePoint Server and select the SharePoint Server version of the article for your consuming environment.

在下列每個步驟中,當您參照 SharePoint Server 文件時,請使用雲端搜尋伺服器陣列和雲端 SSA 的適當名稱和參數。In each of the following steps, when you refer to the SharePoint Server documentation, use the appropriate names and parameters for your cloud search farm and your cloud SSA.

  1. 發佈並共用雲端 SSA,請參閱<在 SharePoint Server 中發佈服務應用程式>。Publish and share the cloud SSA, see Publish service applications in SharePoint Server.

  2. 使用雲端 SSA。Consume the cloud SSA.

    使用已發佈的 SSA 時,需要在使用與發佈 SharePoint 內部部署伺服器陣列之間交換信任憑證。請參閱<在 SharePoint Server 中交換伺服器陣列之間的信任憑證>,然後選取使用環境的 SharePoint Server 版本文章。Consuming a published SSA requires exchanging trust certificates between the consuming and the publishing SharePoint on-premises farm. See Exchange trust certificates between farms in SharePoint Server, and select the relevant SharePoint Server version of the article for your consuming environment.

  3. 授與連線至雲端 SSA 的權限。Grant permission to connect to the cloud SSA.

    將權限授與使用 SharePoint Server 2010 或 SharePoint Server 2013 伺服器陣列,以連線到已發佈的雲端 SSA。請參閱<在 SharePoint 2013 中設定已發佈服務應用程式的權限>。Grant permission to the consuming SharePoint Server 2010 or SharePoint Server 2013 farm to be able to connect the published cloud SSA. See Set permissions to published service applications in SharePoint 2013.

  4. 連線至雲端 SSA。Connect to the cloud SSA.

    已在伺服器陣列之間設定信任和權限之後,即可設定 SharePoint Server 2010 或 SharePoint Server 2013 以連線到雲端搜尋伺服器陣列上的雲端 SSA。請參閱<在 SharePoint 2013 中連線至遠端伺服器陣列上的服務應用程式>。Once the trust and permissions have been set between the farms, you can configure SharePoint Server 2010 or SharePoint Server 2013 to connect to the cloud SSA on your cloud search farm. See Connect to service applications on remote farms in SharePoint 2013.

  5. 設定要與雲端 SSA 建立關聯的 Web 應用程式。Configure web applications to associate with the cloud SSA.

    在 SharePoint Server 2010 或 SharePoint Server 2013 中,設定要與新雲端 SSA 連線建立關聯的 Web 應用程式。請參閱<從 SharePoint 2013 的 Web 應用程式新增或移除服務應用程式連線>。In SharePoint Server 2010 or SharePoint Server 2013, configure the web applications to associate with the new cloud SSA connection. See Add or remove service application connections from a web application in SharePoint 2013.

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

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

設定 SharePoint 的雲端混合式搜尋Configure cloud hybrid search for SharePoint