變更 SharePoint Server 中的搜尋結果的排名Changing the ranking of search results in SharePoint Server

摘要:了解如何變更 SharePoint Server 2016 和 SharePoint Server 2013 中的搜尋結果的排名。Summary: Learn how to change the ranking of search results in SharePoint Server 2016 and SharePoint Server 2013.

對象:SharePoint Server 2016、 SharePoint Server 2013 和 SharePoint Online 搜尋系統管理員。Audience: SharePoint Server 2016, SharePoint Server 2013, and SharePoint Online search administrators.

開始之前:Before you start:

若要變更搜尋結果的排名,您需要:To change the ranking of search results, you need:

  • 在 SharePoint 中的搜尋的基本知識A basic understanding of search in SharePoint

  • 了解在搜尋結果,以判斷如何相關的特定查詢的自訂的搜尋結果會傳回的內容及相關知識Knowledge and understanding of the content that is returned in search results, to judge how relevant a search result for a given query is

  • 執行 Search service 應用程式及企業搜尋中心A running Search service application and Enterprise Search Center

  • 搜尋索引中的內容Content in the search index

為什麼會搜尋結果排名重要?Why is search result ranking important?

是否要使用與企業搜尋中心在內部部署 SharePoint Online、 或是跨網站發佈解決方案,將排名搜尋結果。在大多數情況下,此預設搜尋結果排名應該只可。Whether you're working with an Enterprise Search Center on premises, with SharePoint Online, or with a cross-site publishing solution, your search results will be ranked. In most cases, this default search result ranking should be just fine.

但是,有時您可能會想要影響進行結果給使用者更為相關的搜尋結果的排名。我們最近發佈文章可說明您可以如何變更搜尋結果的排名及可協助您了解 SharePoint Server 中搜尋結果排名的運作方式的一的組。(請參閱本文稍後 < 參考資料)。But, sometimes, you may want to influence the ranking of search results to make results even more relevant to your end-users. We recently published a set of articles that explain how you can change the ranking of search results and that will help you understand how search result ranking works in SharePoint Server. (See references later in this article.)

如何搜尋結果的排名?How are search results ranked?

搜尋結果的排名使用排名模型。排名模型計算結果集中的搜尋結果的位置。有數個在 SharePoint 中自動執行這項作業為您的排名模型。如此,通常是,您不需要在意排名模型用於查詢或及其作用一樣。Search results are ranked using a ranking model. A ranking model calculates the position of a search result in the result set. There are several ranking models in SharePoint that automatically do this for you. So, usually, you don't have to care about which ranking model is used for a query, or what it does exactly.

若要變更搜尋結果排名使用查詢規則Using query rules to change search result ranking

如果您不滿足搜尋結果排名與該 SharePoint 提供,建議您將新增查詢規則以達最佳搜尋案例的搜尋結果排名。If you are not satisfied with the search result ranking that SharePoint provides, we recommend that you add query rules to optimize search result ranking for your search scenarios.

查詢規則的相關的良好項重點是他們可用來搜尋系統管理員很大的範圍。您可以新增查詢規則的 Search service 應用程式在內部部署,搜尋管理員或 SharePoint Online 中的租用戶系統管理員身分。您也可以新增和重複使用查詢規則來作為網站集合管理員或網站擁有人,同時在內部部署和線上。The good thing about query rules is that they are available to a large range of search administrators. You can add query rules to the Search service application as a search administrator on premises, or as a tenant administrator in SharePoint Online. You can also add and reuse query rules as a site collection administrator or site owner, both on premises and online.

您可以針對每個查詢規則影響您排序、 排名及顯示搜尋結果的方式。每個查詢規則是由查詢規則條件及查詢規則動作所組成。每當查詢比對的查詢規則條件,就會觸發查詢規則中指定之查詢規則動作。您已輸入的條件之後,您可以指定:For each query rule, you can influence the way that you sort, rank and display search results. Each query rule consists of a query rule condition and a query rule action. Whenever a query matches a query rule condition, the query rule action that you specify in the query rule is triggered. After you have entered a condition, you can specify to:

  • 新增升級一定會出現在排名的搜尋結果上方的結果。Add promoted results that always appear above the ranked search results.

  • 新增結果區塊] 群組中,以顯示特定搜尋結果並升級該區塊。Add a result block that shows particular search results as a group, and promote that block.

  • 變更搜尋結果的順序:Change the order of the search results:

    • 由一或多個 managed 屬性排序。Sort by one or several managed properties.

      當您排序結果以這種方式時,您覆寫的排名模型。When you sort results in this manner, you override the ranking model.

    • 適用於動態排名。Apply dynamic ranking.

      您可以升級或降級根據您指定的查詢條件的結果。You can promote or demote results, based on a query condition that you specify.

影響利用查詢規則的搜尋結果的排名提供更多詳細資料。在大多數情況下,您可以使用查詢規則來調整排名。不過,若要避免增加的查詢延遲請小心不要將新增過於複雜或太多的查詢規則。Influence the ranking of search results with query rules provides more details. In most cases, you can use query rules to adjust ranking. However, to avoid increased query latency be careful not to add too complex or too many query rules.

使用自訂排名模型: 如果不搭配使用查詢規則Using custom ranking models: if query rules don't work

如果開啟您無法使用查詢規則以達成目標,您可以考慮建立及部署自訂排名模型。例如,您可以建立自訂排名模型的搜尋結果排名計算中加入自訂的受管理的屬性。If it turns out that you can't use query rules to achieve your goals, you can consider creating and deploying a custom ranking model. For example, you can create a custom ranking model to include custom managed properties in the search result ranking calculations.

由於建立及自訂排名模型調整複雜且有非常大的影響搜尋結果上,建議您不要才。 這限制性。您僅可建立及部署在內部部署的自訂排名模型。Since creating and tuning a custom ranking model is complex and can have a very large effect on your search results, we recommend that you do not take this lightly. You can only create and deploy a custom ranking model on premises.

當您建立自訂排名模型時,複製現有的 SharePoint 伺服器排名模型及編輯該複本。然後,您應該驗證方式良好的自訂排名模型是藉由執行查詢數和比較收到新排名模型與舊版的排名模型中取得的結果的結果。一旦完成建立和驗證,您在部署您的自訂排名模型及告訴它應該使用新的排名模型至所有或部分搜尋結果的排名的搜尋系統。When you create a custom ranking model, you copy an existing SharePoint Server ranking model and edit that copy. Then, you should validate how good the custom ranking model is by running many queries and comparing the results that you get with the new ranking model to the results that you got with the previous ranking model. Once you're done creating and validating, you deploy your custom ranking model and tell the search system that it should use the new ranking model to rank all or some of your search results.

與任何功能隨附於 SharePoint Server 的排名模型,自訂排名模型計算結果集中的搜尋結果的位置。自訂的搜尋結果會被視為相關如果它收到高排名分數。高排名分數是特定的數字分數的計算方式是使用搜尋引擎的排名模型。排名模型是一或多個排名階段包含一組排名功能的清單。排名模型定義搜尋引擎計算使用的排名功能以表示排名模型中的各種因素的相關排名的方式。As with any ranking model that is included with SharePoint Server, a custom ranking model calculates the position of a search result in the result set. A search result is considered relevant if it receives a high rank score. A high rank score is a specific numeric score that's calculated by the search engine that uses a ranking model. A ranking model is a list of one or more rank stages that contain a set of rank features. The ranking model defines how the search engine calculates the relevance rank using various factors, which are represented in the ranking model as rank features.

有數個排名模型提供 SharePoint Server 中。如需詳細資訊,請參閱 < Overview of SharePoint Server 中排名的搜尋結果。大部分的搜尋結果的排名使用預設搜尋模型。請閱讀若要深入了解預設搜尋模型的最重要排名功能 MSDN 上的自訂排名模型提升 SharePoint 2013 中的相關性。本文也會說明如何部署自訂排名模型。There are several ranking models available in SharePoint Server. For more details, see Overview of search result ranking in SharePoint Server. Most search results are ranked using the Default Search Model. Read Customizing ranking models to improve relevance in SharePoint 2013 on MSDN to learn more about the most important ranking features in the Default Search Model. This article also explains how to deploy a custom ranking model.

我們希望的文章提供您的搜尋結果排名的運作方式並變更其概觀。We hope that the articles give you an overview of how search result ranking works and how you can change it.