Get-SPEnterpriseSearchRankingModel

返回分级模型。

语法

Get-SPEnterpriseSearchRankingModel
   [[-Identity] <RankingModelPipeBind>]
   -Owner <SearchObjectOwner>
   -SearchApplication <SearchServiceApplicationPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [<CommonParameters>]

说明

此 cmdlet 可在创建、删除或更新分级模型时读取 RankingModel 对象。

如果未指定 Identity 参数,或者标识与集合中所有分级模型都不匹配,则会返回搜索应用程序的所有分级模型。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

------------------示例 1------------------

$ssa = Get-SPEnterpriseSearchServiceApplication -Identity 'Search Service Application'
$owner = Get-SPEnterpriseSearchOwner -Level ssa
Get-SPEnterpriseSearchRankingModel -Identity '8f6fd0bc-06f9-43cf-bbab-08c377e083f4' -SearchApplication $ssa -Owner $owner

此示例检索搜索应用程序 Search Service Application 的 search service application 级别的标识为 8f6fd0bc-06f9-43cf-bbab-08c377e083f4 的分级模型。

------------------示例 2------------------

$ssa = Get-SPEnterpriseSearchServiceApplication -Identity "Search Service Application"
$owner = Get-SPEnterpriseSearchOwner -Level ssa
Get-SPEnterpriseSearchRankingModel -SearchApplication $ssa -Owner $owner

此示例检索搜索应用程序 Search Service Application 的 search service application 级别上定义的分级模型。

参数

-Identity

指定要检索的分级模型。

键入的值必须是 8f6fd0bc-06f9-43cf-bbab-08c377e083f4 形式的有效 GUID,或有效 RankingModel 对象的实例。

Type:RankingModelPipeBind
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Owneer

Specifies the scope where the ranking model is available. The available scopes are: SSA, Tenant, Site Collection or Site. A ranking model can be available in multiple scopes.

Type:SearchObjectOwner
Aliases:o
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SearchApplication

指定包含分级模型的搜索应用程序。

键入的值必须是 9bf36458-fc99-4f7b-b060-867e5a63adce 形式的有效 GUID;有效的搜索应用程序名称(例如 SearchApp1);或有效 SearchServiceApplication 对象的实例。

Type:SearchServiceApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition