在 SharePoint Server 中管理查詢建議

適用于:yes-img-132013 yes-img-16 2016yes-img-192019 yes-img-se訂閱版本 no-img-sopMicrosoft 365 中的 SharePoint

查詢建議藉由顯示與正在輸入的查詢類似的查詢,從而協助使用者快速找到資訊。 例如,當使用者開始輸入 "sales" 時,他們可從 [搜尋] 方塊下方的清單挑選常用的 sales 相關查詢。

當使用者至少按了六次該查詢的一或多個結果時,搜尋系統會自動建立查詢的建議。 系統會針對每個結果來源和每個網站集合每日產生查詢建議,因此針對不同的結果來源和網站集合,自動查詢建議可能會有所不同。

當您依照本文的步驟手動新增應該或不應作為查詢建議的片語時,查詢建議會套用至 所有 結果來源和 所有 網站集合。

新增一律或永不做為查詢建議的片語

若要新增片語,使得使用者在開始輸入查詢時,讓系統一律或永不建議這些片語給使用者,您必須先建立一或多個文字檔來包含這些片語,然後將檔案匯入搜尋系統。

You should create separate text files for the phrases that you want to always be suggested, and for the phrases that you want to never be suggested. If you want to add query suggestions for multiple languages, you should also create separate files per language. The language determines how the query suggestions are processed internally in the search system, but all query suggestions are always displayed or suppressed for all languages as users enter their queries. Add each phrase as a separate line in the text file that you create, and save the file in UTF-8 encoding.

注意

[!注意] 當您匯入含查詢建議片語的文字檔時,會覆寫搜尋系統中任何現有的手動查詢建議。 不會覆寫自動查詢建議。 若要編輯現有的手動查詢建議或新增查詢建議,您應該先將現有的查詢建議匯出到文字檔,然後更新和重新匯入該檔案。

新增應該一律用做查詢建議的片語

  1. 確認執行此程序的使用者帳戶是否為 Search Service 應用程式的管理員。

  2. 開啟 [查詢建議設定] 頁面。

  • 在 SharePoint 管理中心網站首頁上,按一下 [應用程式管理] 區段中的 [管理服務應用程式]

  • 在 [管理服務應用程式] 頁面上,按一下 Search Service 應用程式。

  • On the Search Administration Page, in the Queries and Results section, click Query Suggestions. The Query Suggestion Settings page opens.

  1. 在 [建議片語的語言] 區段中,選取您一律要建議的查詢建議處理語言。

  2. In the Always suggest phrases section, click Import from text file. Browse to the file that you want to import and click OK.

  3. 按一下 [儲存設定]

注意事項

If you want to edit existing manual query suggestions or add new ones, click Export to file, update the text file and then re-import it. To remove all manual query suggestions, upload an empty text file.

新增應該永不用做查詢建議的片語

  1. 確認執行此程序的使用者帳戶是否為 Search Service 應用程式的管理員。

  2. 開啟 [查詢建議設定] 頁面。

  • 在 SharePoint 管理中心網站首頁上,按一下 [應用程式管理] 區段中的 [管理服務應用程式]

  • 在 [管理服務應用程式] 頁面上,按一下 Search Service 應用程式。

  • On the Search Administration Page, in the Queries and Results section, click Query Suggestions. The Query Suggestion Settings page opens.

  1. 在 [建議片語的語言] 區段中,選取您永不建議的查詢建議處理語言。

  2. In the Never suggest phrases section, click Import from text file. Browse to the file that you want to import and click OK.

  3. 按一下 [儲存設定]

注意事項

If you want to edit existing manual query suggestions or add new ones, click Export to text file, update the text file and then re-import it. 若要移除所有手動查詢建議,請上傳空白的文字檔。

開啟或關閉查詢建議

預設會開啟查詢建議。 下列步驟說明如何開啟或關閉查詢建議。

若要啟用或停用查詢建議

  1. 確認執行此程序的使用者帳戶是否為 Search Service 應用程式的管理員。

  2. 開啟 [查詢建議設定] 頁面。

  • 在 SharePoint 管理中心網站首頁上,按一下 [應用程式管理] 區段中的 [管理服務應用程式]

  • 在 [管理服務應用程式] 頁面上,按一下 Search Service 應用程式。

  • On the Search Administration Page, in the Queries and Results section, click Query Suggestions. The Query Suggestion Settings page opens.

  1. 在 [搜尋建議] 區段中,請執行下列其中一項作業:
  • 若要啟用查詢建議,請核取 [顯示搜尋建議] 核取方塊。

  • 若要停用查詢建議,請清除 [顯示搜尋建議] 核取方塊。

  1. 按一下 [儲存設定]