在 SharePoint Server 中管理查詢拼字校正Manage query spelling correction in SharePoint Server

摘要: 了解如何將單一字詞納入查詢拼字校正或從查詢拼字校正排除,以協助校正查詢中的正確拼字錯誤。Summary: Learn how to include single words in or exclude single words from query spelling corrections to help correct spelling errors in queries.

如果使用者在搜尋查詢中輸入的字詞顯示為拼字錯誤,搜尋結果頁便會顯示查詢拼字校正,也就是所謂的「您的意思是?」。例如,如果某人輸入的查詢包含「amphitheatre」一字,查詢拼字校正會顯示「amphitheatre」。If a user enters a word in a search query that appears to be misspelled, the search results page displays query spelling corrections. This is also known as "Did you mean?". For example, if someone enters a query that contains the word "ampitheater", the query spelling correction would be "amphitheater".

這些查詢拼字建議是根據預設拼字字典中最接近的字詞與「查詢拼字檢查包含」清單而來。遇到您在「查詢拼字檢查排除」清單中輸入的字詞時,則永遠不會顯示查詢拼字建議。您可以編輯「查詢拼字包含」和「查詢拼字排除」清單,但不能編輯預設拼字字典。對「查詢拼字排除」和「查詢拼字包含」清單進行的任何變更需要長達 10 分鐘的時間才能生效。These query spelling suggestions are based on the closest matches in the default spelling dictionaries and the Query Spelling Inclusions list. For terms that you enter in the Query Spelling Exclusions list, query spelling suggestions will never be displayed. You can edit the Query Spelling Inclusions and the Query Spelling Exclusions list, but you can't edit the default spelling dictionaries. It takes up to 10 minutes for any changes to the Query Spelling Exclusions or the Query Spelling Inclusions list to take effect.

重要

您只可以包含或排除單一字詞。You can only include or exclude single words.

如需不同語言之語言搜尋功能的詳細資訊,請參閱<Linguistic search features in SharePoint Server>。For more information about linguistic search features for different languages see Linguistic search features in SharePoint Server.

開啟字詞庫管理工具Open the Term Store Management Tool

查詢拼字排除和包含清單會在字詞庫中受到管理。使用字詞庫管理工具來編輯清單。The query spelling exclusions and inclusions lists are managed in the Term Store. Use the Term Store Management Tool to edit the lists.

移至字詞庫管理工具To get to the Term Store Management Tool

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

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

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

  4. 在 [搜尋管理] 頁面上的 [查詢與結果]**** 區段上,按一下 [搜尋字典]*。字詞庫管理工具隨即開啟。On the Search Administration Page, in the *Queries and Results section, click Search Dictionaries. The Term Store Management Tool opens.

從查詢拼字校正排除字詞Exclude terms from query spelling corrections

若要從查詢拼字校正排除字詞,將字詞新增到「查詢拼字排除」清單中。To exclude words from query spelling corrections, add terms to the Query Spelling Exclusions list.

重要

請針對每個查詢拼字校正排除,建立個別的字詞。請勿為「查詢拼字排除」清單中的字詞建立子字詞。在此環境中,將忽略字詞階層。Create a separate term for each query spelling correction exclusion. Do not create subterms for terms in the Query Spelling Exclusions list. Term hierarchies will be ignored in this context.

將字詞新增到查詢拼字排除清單中To add a word to the Query Spelling Exclusions list

  1. 在 [網站設定:字詞庫管理工具] 頁面上,按一下箭頭以展開 [搜尋字典]**** 功能表。On the Site Settings: Term Store Management Tool page, click the arrow to expand the Search Dictionaries menu.

  2. 依序按一下 [查詢拼字排除]、箭頭和 [建立字詞]*Click Query Spelling Exclusions, click the arrow and then click *Create Term.

  3. 在出現的方塊中輸入要排除的字詞。Type the word that you want to exclude in the box that appears.

  4. 按一下頁面上的任意處,將字詞新增到「查詢拼字排除」清單中。Click anywhere on the page to add the term to the Query Spelling Exclusions list.

在查詢拼字校正內包含字詞Include terms in query spelling corrections

若要將字詞包含到查詢拼字校正中,將字詞新增到「查詢拼字包含」清單中。To include words in query spelling corrections, add terms to the Query Spelling Inclusions list.

重要

請針對每個查詢拼字校正包含,建立個別的字詞。請勿為「查詢拼字包含」清單中的字詞建立子字詞。在此環境中,將忽略字詞階層。Create a separate term for each query spelling correction inclusion. Do not create subterms for terms in the Query Spelling Inclusions list. Term hierarchies will be ignored in this context.

將字詞新增到查詢拼字包含清單中To add a word to the Query Spelling Inclusions list

  1. 在 [網站設定:字詞庫管理工具] 頁面上,按一下箭頭以展開 [搜尋字典]**** 功能表。On the Site Settings: Term Store Management Tool page, click the arrow to expand the Search Dictionaries menu.

  2. 依序按一下 [查詢拼字包含]、箭頭和 [建立字詞]*Click Query Spelling Inclusions, click the arrow and then click *Create Term.

  3. 在出現的方塊中輸入要包含的字詞。Type the word that you want to include in the box that appears.

  4. 按一下頁面上的任意處,將字詞新增到「查詢拼字包含」清單中。Click anywhere on the page to add the term to the Query Spelling Inclusions list.

編輯字詞Edit terms

您可以在「查詢拼字排除」和「查詢拼字包含」清單中編輯字詞名稱。You can edit the names of terms in the Query Spelling Exclusions and Query Spelling Inclusions lists.

編輯字詞To edit terms

  1. 在 [網站設定:字詞庫管理工具] 頁面上,按一下箭頭以展開 [搜尋字典]**** 功能表。On the Site Settings: Term Store Management Tool page, click the arrow to expand the Search Dictionaries menu.

  2. 根據字詞所在清單,按一下 [查詢拼字排除]**** 或 [查詢拼字包含]*Depending on which list the term is in, click either *Query Spelling Exclusions or Query Spelling Inclusions.

  3. 按兩下您要編輯的字詞。Double-click the term that you want to edit.

  4. 輸入該字詞的新名稱。Type the new name for the term.

  5. 按一下頁面上任一處,儲存編輯好的字詞。Click anywhere on the page to save the edited term.

另請參閱See also

SharePoint Server 中的語言搜尋功能Linguistic search features in SharePoint Server

Set-SPEnterpriseSearchQuerySpellingCorrectionSet-SPEnterpriseSearchQuerySpellingCorrection

Get-SPEnterpriseSearchQuerySpellingCorrectionGet-SPEnterpriseSearchQuerySpellingCorrection