設定從 SharePoint Server 搜尋 OneDrive for Business in Office 365Set up Search of OneDrive for Business in Office 365 from SharePoint Server

摘要:內部部署 SharePoint Server 搜尋的 OneDrive for Business in Office 365 中的文件的使用者提供簡便的方式。Summary: Provide an easy way for users of on-premises SharePoint Server to search for documents that are in OneDrive for Business in Office 365.

您安裝 Service Pack 1 for SharePoint Server,當使用者按一下OneDrive網站的導覽列上之後,您可以將他們重新導向至 OneDrive for Business in Office 365 適用於專業人員和小型企業。若要了解如何執行這項作業,請參閱過時重新導向至含有 OneDrive for Business 的 Office 365 的使用者After you install Service Pack 1 for SharePoint Server, when your users click OneDrive or Sites on the navigation bar, you can redirect them to OneDrive for Business in Office 365 for professionals and small businesses. To learn how to do this, see OBSOLETE Redirect users to Office 365 with OneDrive for Business.

本文說明如何您可以再設定傳回僅搜尋結果的 OneDrive for Business 傳回的 Office 365 選項中的 SharePoint Server 企業搜尋中心。這個選項,請呼叫搜尋垂直的內部部署 SharePoint Server 搜尋下列項目 onedrive for Business in Office 365 使用者的搜尋查詢比對使用者提供簡便的方式:This article describes how you can then set up an option in the SharePoint Server enterprise Search Center to return only search results from OneDrive for Business that is in Office 365. This option, called a search vertical, will provide an easy way for a user of on-premises SharePoint Server to search only the following items in OneDrive for Business in Office 365 for a match to the user's search query:

  • 使用者儲存在 Office 365 的 OneDrive for Business 中的項目Items that the user has stored in OneDrive for Business in Office 365

  • Office 365 的 OneDrive for Business 中與使用者共用的項目Items in OneDrive for Business in Office 365 that are shared with the user

  • Office 365 的 OneDrive for Business 中與所有人共用的項目Items in OneDrive for Business in Office 365 that are shared with everyone

使用者如何存取 OneDrive for Business 搜尋類別How users will access the OneDrive for Business search vertical

使顯示只有特定結果的子集所有相關之搜尋類別來篩選搜尋結果。SharePoint Server 提供四個預先設定的搜尋類別:每個項目人員對話影片。您可以看到這些搜尋導覽網頁組件中,這是在搜尋結果] 頁面上,在搜尋方塊下方如下列螢幕擷取畫面所示的搜尋類別的連結。A search vertical filters search results so that only a certain subset of all relevant results is displayed. SharePoint Server provides four preconfigured search verticals: Everything, People, Conversations, and Videos. You can see the links for these search verticals in the Search Navigation Web Part, which is below the search box on a search-results page, as shown in the following screen capture.

企業搜尋中心內的四個預設搜尋類別

當使用者在搜尋方塊中輸入搜尋查詢,然後按一下其中一個搜尋類別連結時,搜尋系統只會傳回對應於此搜尋類別的搜尋結果。例如,如果使用者在搜尋方塊中輸入 Azure,然後選取 [影片] 搜尋類別連結,則搜尋系統只會傳回與 Azure 相關的影片搜尋結果。When a user enters a search query in the search box and then clicks one of the search-vertical links, the Search system returns search results that correspond to that search vertical only. For example, if the user enters Azure in the search box and then selects the Videos search-vertical link, the Search system will return only search results that are videos related to Azure.

在本文中,在 SharePoint Server 部署中,您會建立搜尋類別的 OneDrive for Business in Office 365。您接著會新增新搜尋類別的企業搜尋中心] 連結。企業搜尋中心中的連結的外觀類似如下,視您對其名稱。In this article, in the SharePoint Server deployment, you will create a search vertical for OneDrive for Business in Office 365. You will then add a link in the enterprise Search Center for the new search vertical. The link in the enterprise Search Center will look something like this, depending on what you name it.

一個 OneDrive 搜尋類別以及企業搜尋中心內的四個預設搜尋類別

之後,當使用者的內部部署中的企業搜尋中心的 [搜尋] 方塊中的 SharePoint Server 類型查詢他們按一下 OneDrive for Business 搜尋類別連結您所建立他們會取得搜尋結果只從 OneDrive for Business 傳回在 Office 365。After that, when users of on-premises SharePoint Server type queries in the search box in the enterprise Search Center and they click the OneDrive for Business search-vertical link that you created, they will get search results only from OneDrive for Business that is in Office 365.

建立 OneDrive 搜尋類別來設定 OneDrive for Business 的搜尋Setting up Search of OneDrive for Business by creating a OneDrive search vertical

若要建立搜尋類別將會讓使用者能夠只搜尋 OneDrive for Business in Office 365 中的項目在 SharePoint Server 部署中,您執行下列程序所述的本文中的詳細資料:。To create a search vertical in your SharePoint Server deployment that will enable users to search only for items that are in OneDrive for Business in Office 365, you perform the following procedures, which are described in detail in this article:.

針對 Office 365 中的商務用 OneDrive,在 SharePoint Server 2013 中建立搜尋類別的步驟

也就是在 SharePoint Server 部署中,您執行下列動作:That is, in your SharePoint Server deployment, you do the following:

開始之前Before you begin

執行本文中的程序之前,務必先完成下列各項動作:Before you perform the procedures in this article, make sure that you do each of the following:

  1. Configure hybrid federated search from SharePoint Server to SharePoint Online - roadmapConfigure hybrid federated search from SharePoint Server to SharePoint Online - roadmap

  2. 設定從 SharePoint 伺服器至 SharePoint Online 的伺服器對伺服器驗證Configure server-to-server authentication from SharePoint Server to SharePoint Online

    如需同步處理使用者和密碼的其他資訊,請參閱 <設定混合式 OneDrive for Business同步處理使用者和密碼的方法For additional information about synchronizing users and passwords, see Ways to synchronize users and passwords in Configure hybrid OneDrive for Business.

步驟 1:建立結果來源以指定 Office 365 的 OneDrive for Business 做為取得搜尋結果的內容存放庫Step 1: Create a result source that specifies OneDrive for Business in Office 365 as the content repository to get search results from

在此程序,您可以建立 SharePoint Server 部署中的結果來源。這種結果來源為 Office 365 以取得搜尋結果中指定 URL 和 path 定義、 取得結果,以及數個其他通訊協定相關的設定。In this procedure, you create a result source in the SharePoint Server deployment. This result source is a definition that specifies the URL and path in Office 365 to get search results from, the protocol for getting those results, and several other related settings.

您可以在 Search Service 應用程式層級、網站集合層級或網站層級上建立結果來源。在此程序中,您將於 Search Service 應用程式層級上建立結果來源。如此,結果來源可供該 Search Service 應用程式中的 Search Service 應用程式層級上所建立的任何查詢規則使用,也可供取用 Search Service 應用程式的 Web 應用程式中的網站集合或網站所建立的任何查詢規則使用。A result source can be created at the Search service application level, the site collection level, or the site level. In this procedure, you create the result source at the Search service application level. This makes the result source available to any query rule that is created at the Search service application level in that Search service application and to any query rule that is created for a site collection or site that is in a web application that consumes the Search service application.

若要建立結果來源To create the result source

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

  2. 在 SharePoint Server 部署中,請在管理中心的應用程式管理] 區段中,按一下 [管理服務應用程式]。In the SharePoint Server deployment, in Central Administration, in the Application Management section, click Manage service applications.

  3. 按一下您要新增結果來源的 Search Service 應用程式。Click the Search service application to which you want to add a result source.

  4. 在_Search_service_application_name_: 搜尋管理搜尋服務應用程式] 頁面 [快速啟動] 中的按一下 [結果來源On the Search_service_application_name:Search Administration page for the Search service application, in the Quick Launch, click Result Sources.

  5. 在_Search_service_application_name_: 管理結果來源] 頁面上,按一下 [新增結果來源On the Search_service_application_name:Manage Result Sources page, click New Result Source.

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

  7. 在 [名稱] 方塊中輸入新結果來源的名稱 — 例如,來自 Office 365 的 OneDrive 的結果。In the Name box, type a name for the new result source—for example, Results from OneDrive in Office 365.

  8. (選擇性) 在 [描述] 方塊中,輸入新結果來源的描述。(Optional) In the Description 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 中取得搜尋結果的根網站集合位址。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.

    SharePoint Online 中的根網站集合位址通常為 https:// tenant_name.sharepoint.com 格式,其中 tenant_name 是 Office 365 承租人的名稱。The address of the root site collection in SharePoint Online is typically of the form https:// tenant_name.sharepoint.com, where tenant_name is the name of the Office 365 tenant.

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

  12. [查詢轉換] 區段中後{searchTerms},輸入空格,然後輸入下列命令:In the Query Transform section, after {searchTerms}, type a space and then type the following:

    path:https:// tenant_name-my.sharepoint.com/personalpath:https:// tenant_name-my.sharepoint.com/personal

    一般而言,您可以使用查詢轉換,將搜尋結果的範圍縮小到指定的子集。在此情況下,您使用查詢轉換來指定 Path 屬性,將搜尋結果的範圍縮小到 Office 365 的 OneDrive for Business 中的文件。如需查詢轉換的詳細資訊,請參閱下列資源:In general, you can use a query transform to narrow search results to a specified subset. In this case, you use a query transform to specify the Path property, which narrows search results to documents that are in OneDrive for Business in Office 365. For more information about query transforms, see the following resources:

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

    您在 [ Search_service_application_name:新增結果來源] 頁面上的設定如下圖所示:Your settings on the Search_service_application_name:Add Result Source page then look something like this:

    SharePoint Server 2013 中 [新增結果來源] 頁面的螢幕擷取畫面

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

步驟 2:建立 OneDrive for Business 搜尋類別的搜尋結果頁面Step 2: Create a search-results page for the OneDrive for Business search vertical

每一個搜尋類別可以有自己的搜尋結果頁面來顯示該類別的結果。在下列程序中,您將建立搜尋結果頁面來顯示 OneDrive for Business 搜尋類別的結果。Each search vertical can have its own search-results page on which results for that vertical are displayed. In the following procedure, you create the search-results page that will display results for the OneDrive for Business search vertical.

若要建立 onedrive for Business 搜尋類別的搜尋結果頁面To create the search-results page for the OneDrive for Business search vertical

  1. 確認您要用來執行此程序的使用者帳戶是企業搜尋中心的網站集合管理員或網站擁有人。Verify that the user account that you use to perform this procedure is a site collection administrator or site owner for the enterprise Search Center.

  2. 在 SharePoint Server 部署中,瀏覽至企業搜尋中心。In the SharePoint Server deployment, browse to the enterprise Search Center.

    企業搜尋中心的 URL 通常為 http:// host_name/sites/ Search_Center_name 格式。The URL of the enterprise Search Center is typically of the form http:// host_name/sites/ Search_Center_name.

  3. 移至 [設定 > 網站內容 > 頁面Go to Settings > Site Contents > Pages.

    此 [頁面] 頁面列出企業搜尋中心的所有搜尋結果頁面。This Pages page contains a list of all of the search-results pages for the enterprise Search Center.

  4. 從 [頁面] 頁面中,執行下列動作來新增搜尋結果頁面:From the Pages page, add a new search-results page by doing the following:

  5. 在功能區上,按一下 [檔案] 索引標籤。On the ribbon, click the Files tab.

  6. 按一下 [新增文件],然後按一下 [頁面]。Click New Document, and then click Page.

    [搜尋中心] > [設定] > [網站內容] > [頁面] 頁面上功能區的螢幕擷取畫面

  7. 在 [建立頁面] 頁面上,執行下列動作:On the Create Page page, do the following:

  8. 在 [標題] 方塊中輸入新的搜尋結果頁面,例如 OneDriveResults 標題。In the Title box, enter a title for the new search-results page, such as OneDriveResults.

  9. (選擇性) 在 [描述] 方塊中,輸入新頁面的描述。(Optional) In the Description box, enter a description for the new page.

  10. 在 [ URL ] 方塊中輸入您想要用來識別] 頁面上,例如 OneDriveResults 之 url 的部分。In the URL box, enter the portion of the URL that you want to use to identify the page, such as OneDriveResults.

  11. 在 [頁面配置] 區段中,確定已選取 [(歡迎頁面) 搜尋結果]。In the Page Layout section, ensure that (Welcome Page) Search Results is selected.

    這指定如何顯示新的搜尋結果頁面。This specifies how the new search-results page will be displayed.

    您在 [建立頁面] 頁面上的設定如下圖所示:Your settings on the Create Page page then look something like this:

    [建立搜尋結果] 頁面的螢幕擷取畫面

  12. 按一下 [建立]。Click Create.

  13. 在列出企業搜尋中心之所有搜尋結果頁面的頁面上,執行下列動作:On the page that contains a list of all of the search-results pages for the enterprise Search Center, do the following:

  14. 選取您剛建立之搜尋結果頁面的名稱旁邊的圖示 (例如 OneDriveResults)。Select the icon next to the name of the search-results page (such as OneDriveResults) that you just created.

    這樣會在搜尋結果頁面清單中選取此列。This selects that row in the list of search-results pages.

  15. 在 [檔案] 索引標籤上,在 [開啟及取出] 區段中選取 [存回]。On the Files tab, in the Open & Check Out section, select Check In.

  16. 在 [存回] 對話方塊中,執行下列動作:In the Check in dialog box, do the following:

  17. 在 [版本] 欄位中,選取 [1.0 主要版本 (發佈)]。In the Version field, select 1.0 Major Version (publish).

  18. 在 [保留取出] 欄位中,選取 [否]。In the Retain Check Out field, select No.

  19. (選擇性) 在 [註解] 欄位中,適當地輸入設定的註解。(Optional) In the Comments field, enter comments as appropriate for your configuration.

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

    這樣會存回並發佈頁面。This checks in and publishes the page.

步驟 3:設定搜尋結果網頁組件以顯示 Office 365 的 OneDrive for Business 傳回的結果Step 3: Configure the Search Results Web Part to display results from OneDrive for Business that is in Office 365

在此程序中,您將於本文的上一個程序 (步驟 2) 所建立的搜尋結果頁面上設定搜尋結果網頁組件。您將設定搜尋結果網頁組件來顯示 Office 365 的 OneDrive for Business 傳回的搜尋結果。In this procedure, you configure the Search Results Web Part on the search-results page that you created in the previous procedure in this article (Step 2). You configure the Search Results Web Part to display search results from OneDrive for Business that is in Office 365.

若要設定搜尋結果網頁組件顯示搜尋結果的 OneDrive for Business 傳回的 Office 365To configure the Search Results Web Part to display search results from OneDrive for Business that is in Office 365

  1. 確認您要用來執行此程序的使用者帳戶是企業搜尋中心的網站集合管理員或網站擁有人。Verify that the user account that you use to perform this procedure is a site collection administrator or site owner for the enterprise Search Center.

  2. 移至列出企業搜尋中心之所有搜尋結果頁面的頁面。Go to the page that has a list of all of the search-results pages for the enterprise Search Center.

    您存取此頁面的本文 (步驟 2) 中的上一個程序。再次連絡,瀏覽至企業搜尋中心,然後移至 [設定 > 網站內容 > 頁面。頁面的 URL 類似 http:// host_name/sites/ Search_Center_name/Pages/Forms/AllItems.aspx。You accessed this page in the previous procedure in this article (Step 2). To reach it again, browse to the enterprise Search Center, and then go to Settings > Site Contents > Pages. The URL of the page might resemble http:// host_name/sites/ Search_Center_name/Pages/Forms/AllItems.aspx.

  3. 按一下您在本文的上一個程序 (步驟 2) 中建立、存回和發佈的搜尋結果頁面的名稱 (例如 OneDriveResults)。Click the name of the search-results page (such as OneDriveResults) that you created, checked in, and published in the previous procedure in this article (Step 2).

    按一下搜尋結果頁面的名稱將會前往此頁面。Clicking the name of the search-results page will take you to that page.

    注意

    在搜尋結果頁面上,您可能會看到 [很抱歉,發生錯誤] 或 [此處沒有任何項目符合您的搜尋] 之類的訊息。這些是當使用者搜尋失敗時,在搜尋結果頁面上可能顯示的預設訊息。這些訊息與您目前處理的設定無關。On the search-results page, you might see the message Sorry, something went wrong, or the message Nothing here matches your search. These are default messages that can be displayed on the search-results page when a user search fails. These messages do not apply to the configuration that you are currently doing.

  4. 移至 [設定 > 編輯頁面Go to Settings > Edit page.

  5. 在功能區上,按一下 [頁面] 索引標籤。On the ribbon, click the PAGE tab.

  6. 在 [頁面] 索引標籤上,在搜尋結果網頁組件中將游標往右移,等到出現向下箭頭時,按一下箭頭。On the PAGE tab, in the Search Results Web Part, move the pointer to the right until you see the down arrow, and then click the arrow.

    隨即會顯示 [搜尋結果] 網頁組件功能表。The Search Results Web Part menu appears.

  7. 在 [搜尋結果] 網頁組件功能表上,選擇 [編輯網頁組件]。On the Search Results Web Part menu, choose Edit Web Part.

    [搜尋結果網頁組件] 功能表的螢幕擷取畫面

    然後,在您所編輯的頁面的右上方,將會出現 [搜尋結果] 網頁組件工具窗格。The Search Results Web Part tool pane then appears at the top right of the page that you are editing.

  8. 在 [搜尋結果] 網頁組件工具窗格中,按一下 [變更查詢]。In the Search Results Web Part tool pane, click Change query.

    [搜尋結果網頁組件] 工具窗格中 [變更查詢] 按鈕的螢幕擷取畫面

  9. 在 [建立您的查詢] 對話方塊中,執行下列動作:In the Build Your Query dialog box, do the following:

  10. 在 [選取查詢] 區段中,在下拉式功能表上,選取您在本文的第一個程序中建立的結果來源,例如 [來自 Office 365 的 OneDrive 中的結果]。In the Select a query section, on the drop-down menu, select the result source that you created in the first procedure of this article, such as Results from OneDrive in Office 365.

    這樣會使 Office 365 的 OneDrive for Business 傳回的搜尋結果,顯示在 OneDriveResults 搜尋結果頁面的搜尋結果網頁組件中。This causes search results from OneDrive for Business in Office 365 to appear in the Search Results Web Part on the OneDriveResults search-results page.

  11. 略過對話方塊的其他區段,然後按一下 [確定]。Skip the other sections in the dialog box, and then click OK.

  12. 在 [頁面] 索引標籤的 [編輯] 群組中,按一下 [存回]。On the PAGE tab, in the Edit group, click Check In.

  13. 在 [存回] 對話方塊中,執行下列動作:In the Check In dialog box, do the following:

  14. (選擇性) 適當地輸入設定的註解。(Optional) Type comments as appropriate for your configuration.

  15. 按一下 [繼續]。Click Continue.

  16. 執行下列任一動作來發佈頁面:Do either of the following to publish the page:

    • 按一下 [發佈此草稿]。Click Publish this draft.

    • 請執行下列動作:Do the following:

  17. 在 [發佈] 索引標籤上,按一下 [發佈]。On the Publish tab, click Publish.

  18. 在 [發佈] 對話方塊中,選擇性地適當輸入設定的註解,然後按一下 [繼續]。In the Publish dialog box, optionally type comments as appropriate for your configuration, and then click Continue.

在此程序,您可以建立中的 SharePoint Server 企業使用者會按下 Business 傳回的 Office 365 的 OneDrive 取得結果的搜尋中心的連結。建立連結之後,它會顯示搜尋導覽網頁組件,在其他搜尋類別,例如每個項目人員之連結旁的 [搜尋] 方塊下。「 搜尋導覽網頁組件中的連結然後看起來類似,根據您特定的設定:In this procedure, you create the link in the SharePoint Server enterprise Search Center that users will click to get results from OneDrive for Business that is in Office 365. After you create the link, it appears in the Search Navigation Web Part, under the search box next to the links for the other search verticals, such as Everything and People. The links in the Search Navigation Web Part then look something like this, depending on your particular configuration:

一個 OneDrive 搜尋類別以及企業搜尋中心內的四個預設搜尋類別

若要建立 onedrive for Business 搜尋類別連結To create the link for the OneDrive for Business search vertical

  1. 確認您用來執行此程序的使用者帳戶是網站集合管理員或 SharePoint Server 部署中的企業搜尋中心網站擁有者。Verify that the user account that you use to perform this procedure is a site collection administrator or site owner for the enterprise Search Center in the SharePoint Server deployment.

  2. 瀏覽至 SharePoint Server 部署中的企業搜尋中心。Browse to the enterprise Search Center in the SharePoint Server deployment.

    企業搜尋中心的 URL 通常為 http:// host_name/sites/ Search_Center_name 格式。The URL of the enterprise Search Center is typically of the form http:// host_name/sites/ Search_Center_name.

  3. 移至 [設定 > 網站設定Go to Settings > Site Settings.

  4. 在 [網站設定] 頁面的 [搜尋] 區段中,按一下 [搜尋設定]。On the Site Settings page, in the Search section, click Search Settings.

    [搜尋中心網站設定] 頁面上 [搜尋] 區段的螢幕擷取畫面

  5. 在 [搜尋設定] 頁面上,執行下列動作:On the Search Settings page, do the following:

  6. (選擇性) 在 [輸入搜尋中心 URL] 區段的 [搜尋中心 URL] 方塊中,輸入企業搜尋中心的 URL。(Optional) In the Enter a Search Center URL section, in the Search Center URL box, type the URL of the enterprise Search Center.

    如果您在此方塊中輸入 URL,當使用者從另一個網站的搜尋方塊執行搜尋之後,搜尋系統會顯示連結,供使用者按一下以嘗試從企業搜尋中心重新搜尋。If you type a URL in this box, after a user performs a search from a search box on another site, the Search system displays a link that the user can click to try the search again from the enterprise Search Center.

  7. 在 [查詢應傳送至哪一個搜尋結果頁面?] 區段中,選取 [使用與我的父頁面相同的結果頁面]。In the Which search results page should queries be sent to? section, select Use the same results page as my parent.

  8. 在 [設定搜尋導覽] 區段中,選取 [新增連結]。In the Configure Search Navigation section, select Add Link.

  9. 在 [導覽連結] 對話方塊中,執行下列動作:In the Navigation Link dialog box, do the following:

    [導覽連結] 對話方塊的螢幕擷取畫面

  10. 在 [標題] 方塊中輸入的文字 (例如 MyOneDrive) 您要使用中的企業搜尋中心將會採取使用者您在本文中的第二個程序 (步驟 2) 中建立的搜尋結果頁面的搜尋類別連結。In the Title box, type the text (such as MyOneDrive) that you want to use for the search-vertical link in the enterprise Search Center that will take users to the search-results page that you created in the second procedure (Step 2) in this article.

  11. 在 [URL] 方塊中,執行下列動作:In the URL box, do one of the following:

    • 輸入您在先前的程序中建立的搜尋結果頁面的相對路徑,例如 /sites/ Search_Center_name/Pages/onedriveresults.aspx。Type the relative path to the search-results page that you created in the previous procedure, such as /sites/ Search_Center_name/Pages/onedriveresults.aspx.

    • 按一下 [瀏覽]。Click Browse.

    • 在搜尋結果頁面清單中,按一下新搜尋類別的搜尋結果頁面的名稱,然後按一下 [插入]。In the list of search-results pages, click the name of the search-results page for the new search vertical, and then click Insert.

  12. 如果您希望當使用者按一下該搜尋類別的連結時,在新視窗中開啟 OneDrive for Business 的搜尋結果頁面,請選取 [在新視窗開啟連結] 核取方塊。Select the Open link in new window check box if you want the search-results page for OneDrive for Business to open in a new window when users click the link for that search vertical.

  13. (選擇性) 在 [描述] 方塊中,輸入新連結的描述。(Optional) In the Description box, type a description for the new link.

  14. (選擇性) 在 [對象] 方塊中,輸入所有對象、SharePoint 群組、通訊群組或安全性群組的名稱 (僅限這些群組才能存取新的搜尋結果頁面)。(Optional) In the Audience box, type the name of a global audience, a SharePoint group, a distribution group, or a security group to which access to the new search-results page will be limited.

    如果您請不要輸入 [對象] 方塊中所有網站使用者會為預設值。值的所有網站使用者允許存取可以存取搜尋中心網站的所有使用者。如需詳細資訊,請參閱 「 存取權授與 SharePoint 搜尋中心 」 中建立 SharePoint Server 中的搜尋中心網站All Site users is the default value if you do not type anything in the Audience box. The value All site users allows access to all users who can access the Search Center site. For more information, see "To grant access to the SharePoint Search Center" in Create a Search Center site in SharePoint Server.

  15. 如果您在對象] 方塊中輸入一個值,然後該方塊旁邊按一下 [檢查名稱] 圖示以確保 SharePoint Server 會辨識您輸入的對象]。If you typed a value in the Audience box, then next to that box, click the Check Names icon to make sure that SharePoint Server recognizes the audience that you typed.

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

  17. 在 [設定搜尋導覽] 區段中,按一下新的連結,例如MyOneDrive、 名稱] 和 [] 或 [下移視您想要顯示的群組中新增連結的位置搜尋類別的連結。In the Configure Search Navigation section, click the name of the new link, such as MyOneDrive, and then click Move Up or Move Down as appropriate to position the new link where you want it to appear in the group of search-vertical links.

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

步驟 5:測試設定來使用 OneDrive 搜尋類別以顯示 Office 365 的 OneDrive for Business 傳回的搜尋結果Step 5: Test your configuration for using the OneDrive search vertical to display search results from OneDrive for Business that is in Office 365

現在,同盟使用者應該能夠使用新的 MyOneDrive 搜尋類別,從 Office 365 中的 OneDrive for Business 取得結果。同盟使用者在新的搜尋類別中執行的搜尋,應該會從 Office 365 的 OneDrive for Business 傳回以下符合搜尋查詢的項目:Federated users should now be able to use the new MyOneDrive search vertical to get results from OneDrive for Business that is in Office 365. Searches that federated users perform in the new search vertical should return the following items from OneDrive for Business that is in Office 365 that match the search query:

  • 使用者儲存在 Office 365 的 OneDrive for Business 中的項目Items that the user has stored in OneDrive for Business in Office 365

  • Office 365 的 OneDrive for Business 中與使用者共用的項目Items in OneDrive for Business in Office 365 that are shared with the user

  • Office 365 的 OneDrive for Business 中與所有人共用的項目Items in OneDrive for Business in Office 365 that are shared with everyone

同盟的使用者會在已同步處理與 Azure Active Directory 使用 Azure Active Directory 同步處理工具 (DirSync) 的內部部署 Active Directory 網域服務 (AD DS) 網域的使用者群組有帳戶的其中一個。帳戶群組成員資格及資源的權限的 SharePoint Server 部署和 Office 365 中且可以存取這兩個環境中的資源與同盟身分識別提供者,例如 Active Directory 同盟驗證服務 (AD FS) 2.0。A federated user is one who has an account in the on-premises Active Directory Domain Services (AD DS) Domain Users group that has been synchronized with Azure Active Directory by using the Azure Active Directory Sync tool (DirSync). The account has group memberships and permissions for resources in the SharePoint Server deployment and in Office 365, and can access resources in both environments by authenticating with the federation identity provider, such as Active Directory Federation Services (AD FS) 2.0.

若要驗證您的設定以便顯示搜尋結果的 OneDrive for Business 傳回的 Office 365,您可以登入以同盟使用者的 SharePoint Server 並嘗試從 OneDrive for Business 搜尋類別中的企業搜尋中心的一些搜尋。使用下列程序驗證您以這種方式的設定。To validate your configuration for displaying search results from OneDrive for Business that is in Office 365, you can log on to SharePoint Server as a federated user and try some searches from the OneDrive for Business search vertical in the enterprise Search Center. Use the following procedure to validate your configuration in this way.

若要測試設定來顯示搜尋結果的 OneDrive for Business 傳回的 Office 365To test your configuration for displaying search results from OneDrive for Business that is in Office 365

  1. SharePoint Server 部署誰已經啟用 Office 365 中且有權限的 SharePoint Online 在 Office 365 中檢視根網站集合的同盟使用者身分登入。Log on to the SharePoint Server deployment as a federated user who has been activated in Office 365, and who has permission to view the root site collection in SharePoint Online in Office 365.

  2. 瀏覽至 SharePoint Server 部署中的企業搜尋中心。Browse to the enterprise Search Center in the SharePoint Server deployment.

    企業搜尋中心的 URL 類似於 http:// host_name/sites/ Search_Center_nameThe URL of the enterprise Search Center might resemble http:// host_name/sites/ Search_Center_name.

  3. 在企業搜尋中心,執行下列動作:In the enterprise Search Center, do the following:

  4. 在搜尋方塊中,輸入測試搜尋查詢,例如您公司的名稱。In the search box, type a test search query, such as the name of your company.

    請確定此查詢能夠從 Office 365 中的 OneDrive for Business 傳回一些搜尋結果。Make sure that it's a query that should yield some search results from OneDrive for Business that is in Office 365.

  5. 按下 Enter 鍵或按一下搜尋圖示,然後等候初次的搜尋結果出現。Press Enter or click the search icon, and then wait for initial search results to be displayed.

  6. 當初次搜尋結果出現之後,按一下您在本文稍早為 OneDrive for Business 建立的搜尋類別連結。After the initial search results are displayed, click the link for the search vertical for OneDrive for Business that you created earlier in this article.

  7. 在搜尋結果頁面上,確認您看到 Office 365 的 OneDrive for Business 傳回的結果。On the search-results page, confirm that you see results from OneDrive for Business that is in Office 365.

  8. 如果您在搜尋結果頁面上沒看到 Office 365 的 OneDrive for Business 傳回的結果,請執行下列動作:If you do not see results from OneDrive for Business in Office 365 on the search-results page, do the following:

  9. 確認下列各項:Verify each of the following:

  10. 您已經依據下列文章所述並依下列順序設定混合式 SharePoint 環境:You configured the hybrid SharePoint environment as described in the following articles, and in the following order:

  11. Configure hybrid federated search from SharePoint Server to SharePoint Online - roadmapConfigure hybrid federated search from SharePoint Server to SharePoint Online - roadmap

  12. 設定從 SharePoint 伺服器至 SharePoint Online 的伺服器對伺服器驗證Configure server-to-server authentication from SharePoint Server to SharePoint Online

  13. 您已完成設定混合式 OneDrive for Business中所述的程序。You completed the procedures described in Configure hybrid OneDrive for Business.

  14. 您已完成本文先前所述的程序。You completed the previous procedures described in this article.

  15. 修正任何錯誤或遺漏,然後再次嘗試搜尋。Correct any errors or omissions, and try a search again.

  16. 如果仍然看不到 Office 365 的 OneDrive for Business 傳回的搜尋結果,請檢查 SharePoint 統一記錄服務 (Unified Logging Service,ULS) 記錄檔 (又稱為 SharePoint 追蹤記錄檔)。If you still do not see search results from OneDrive for Business that is in Office 365, check the SharePoint Unified Logging Service (ULS) logs, also called SharePoint trace logs.

    如需詳細資訊,請參閱統一登入系統 (ULS) 記錄概觀 (英文)。For more information, see Overview of Unified Logging System (ULS) Logging.