在 SharePoint Server 中設定搜尋導覽網頁組件的屬性Configure properties of the Search Navigation Web Part in SharePoint Server

摘要: 了解如何設定「搜尋導覽」網頁組件的屬性,以及如何新增連結到新的搜尋類別頁面。Summary: Learn how to configure properties of the Search Navigation Web Part, and how to add a link to a new search vertical page.

「搜尋導覽」網頁組件已設定為顯示 [所有項目]*、[人員]、[交談]*** 與 [視訊]**** 搜尋類別的連結。此網頁組件使用來自「搜尋結果」網頁組件的搜尋結果,當使用者按一下搜尋類別連結時,就會根據搜尋類別的設定來篩選和顯示搜尋結果。您也可以建立自己的搜尋類別,再將之新增到「搜尋導覽」網頁組件中顯示。The Search Navigation Web Part is configured to display links to the search verticals Everything, People, Conversations and Videos. It uses search results from the Search Results Web Part so that when users click a search vertical link, the search results are filtered and displayed following the configuration of the search vertical. You can also create your own search vertical and add it to be displayed in the Search Navigation Web Part.

您可以透過變更「搜尋導覽」網頁組件上的屬性來達到下列目的:By changing properties on the Search Navigation Web Part you can do the following:

  • 指定接收來自不同網頁組件的搜尋結果。Specify a different Web Part from which search results are received.

  • 變更要顯示的搜尋類別連結數目。Change the number of search vertical links to display.

搜尋類別屬性 (例如顯示名稱和連結) 是在相對應網站的 [搜尋設定] 頁面上設定。The search vertical properties, such as display name and links, are configured on the Search Settings page for the corresponding site.

開始之前Before you begin

注意

因為 SharePoint Server 在 Internet Information Services (IIS) 中以網站形式運作,所以管理員與使用者均依賴瀏覽器提供的協助工具功能。SharePoint Server 支援所支援瀏覽器的協助工具功能。Because SharePoint Server runs as websites in Internet Information Services (IIS), administrators and users depend on the accessibility features that browsers provide. SharePoint Server supports the accessibility features of supported browsers.

如需詳細資訊,請參閱下列資源:For more information, see the following resources:

設定搜尋導覽網頁組件的屬性Configure the properties of the Search Navigation Web Part

設定搜尋導覽網頁組件的屬性To configure the properties of a Search Navigation Web Part

  1. 確認執行此程序的使用者帳戶為企業搜尋中心網站上設計者 SharePoint 群組的成員。Verify that the user account that performs this procedure is a member of the Designers SharePoint group on the Enterprise Search Center site.

  2. 在搜尋結果頁面上,按一下 [設定]**** 功能表,然後按一下 [編輯頁面]*On the search results page, click the *Settings menu, and then click Edit page.

  3. 在「搜尋導覽」網頁組件中,按一下 [搜尋導覽網頁組件]**** 功能表箭頭,然後按一下 [編輯網頁組件]*In the Search Navigation Web Part, click the *Search Navigation Web Part menu arrow, and then click Edit Web Part.

  4. 在 [網頁組件] 工具窗格的 [控制項]**** 區段中執行下列動作:In the Web Part tool pane, in the Control section, do the following:

    • 若要接收來自頁面上另一個網頁組件的搜尋結果,請在 [使用目前的查詢來源]**** 清單中選取網頁組件。To receive search results from another Web Part on the page, in the Use Current Query from list, select a Web Part.

    • 若要變更溢出之前可顯示的搜尋類別連結數目,請在 [溢出前的連結數量上限]**** 方塊中輸入數字。To change the number of search vertical links to display before overflowing, in the Maximum Links Before Overflow box, type a number.

變更搜尋導覽網頁組件中之搜尋類別的屬性Change the properties of a search vertical in the Search Navigation Web Part

變更搜尋導覽網頁組件中之搜尋類別的屬性To change the properties of a search vertical in the Search Navigation Web Part

  1. 確認執行此程序的使用者帳戶是企業搜尋中心網站上「擁有者」群組的成員。Verify that the user account that performs this procedure is a member of the Owners group on the Enterprise Search Center site.

  2. 在網站的 [設定]**** 功能表上,按一下 [網站設定]*On the *Settings menu for the site, click Site Settings.

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

  4. 在 [搜尋設定]**** 頁面的 [設定搜尋導覽]**** 區段中,按一下以選取您要變更屬性的搜尋類別,然後按一下 [編輯]*On the *Search Settings page, in the Configure Search Navigation section, click to select the search vertical for which you want to change the properties, and then click Edit.

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

    • 若要變更搜尋類別的顯示名稱,請在 [標題]**** 欄位中輸入顯示名稱。To change the display name of a search vertical, in the Title field, type a display name.

    • 若要變更搜尋類別的 URL,請在 [URL]**** 欄位中輸入 URL。To change the URL of the search vertical, in the URL field, type a URL.

      注意

      您不能將使用易記 URL 的網頁用於搜尋類別。You can't use a page that uses a friendly URL for your search vertical.

  6. 在 [搜尋設定]**** 頁面上,按一下 [確定]**** 儲存變更。On the Search Settings page, click OK to save the changes.

加入搜尋類別到搜尋導覽網頁組件Add a search vertical to the Search Navigation Web Part

開始此程序之前,請確認您已為搜尋類別建立一個新頁面。建議您複製現有的其中一個搜尋類別頁面 (例如 results.aspx),再修改該複本來建立新頁面。Before you start this procedure, verify that you have created a new page for the search vertical. We recommend that you copy one of the existing search vertical pages — for example, results.aspx, and then modify the copy to create a new page.

加入搜尋類別到搜尋導覽網頁組件To add a search vertical to the Search Navigation Web Part

  1. 確認執行此程序的使用者帳戶是企業搜尋中心網站上「擁有者」群組的成員。Verify that the user account that performs this procedure is a member of the Owners group on the Enterprise Search Center site.

  2. 在網站的 [設定]**** 功能表上,按一下 [網站設定]*On the *Settings menu for the site, click Site Settings.

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

  4. 在 [搜尋設定]**** 頁面的 [設定搜尋導覽]**** 區段中,按一下 [新增連結]*On the *Search Settings page, in the Configure Search Navigation section, click Add Link.

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

    • 在 [標題]**** 欄位中,輸入顯示名稱。In the Title field, type a display name.

    • 在 [URL]**** 欄位中,輸入新搜尋類別的 URL。In the URL field, type the URL to the new search vertical.

    • 按一下 [確定]*,儲存新的搜尋類別。Click *OK to save the new search vertical.