SearchServiceApplication.GetQueryLevelMetricsForModel 方法

获取每个都代表计算查询结果的相关性度量标准的键 / 值对的集合。这些指标是指定的查询集的一部分的每个搜索查询返回。

命名空间:  Microsoft.Office.Server.Search.Administration
程序集:  Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)

语法

声明
Public Function GetQueryLevelMetricsForModel ( _
    searchObjectOwner As SearchObjectOwner, _
    rankingModelId As Guid, _
    QuerySetId As Integer, _
    MetricType As DisplayMetrics _
) As Dictionary(Of Integer, Double)
用法
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim rankingModelId As Guid
Dim QuerySetId As Integer
Dim MetricType As DisplayMetrics
Dim returnValue As Dictionary(Of Integer, Double)

returnValue = instance.GetQueryLevelMetricsForModel(searchObjectOwner, _
    rankingModelId, QuerySetId, MetricType)
public Dictionary<int, double> GetQueryLevelMetricsForModel(
    SearchObjectOwner searchObjectOwner,
    Guid rankingModelId,
    int QuerySetId,
    DisplayMetrics MetricType
)

参数

  • rankingModelId
    类型:System.Guid

    要为其获取级别指标分级模型。

  • MetricType
    类型:DisplayMetrics

返回值

类型:System.Collections.Generic.Dictionary<Int32, Double>

另请参阅

引用

SearchServiceApplication 类

SearchServiceApplication 成员

Microsoft.Office.Server.Search.Administration 命名空间