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
)
参数
searchObjectOwner
类型:Microsoft.Office.Server.Search.Administration.SearchObjectOwner搜索站点层次结构的所有者。
rankingModelId
类型:System.Guid要为其获取级别指标分级模型。
QuerySetId
类型:System.Int32设置查询。
- MetricType
类型:DisplayMetrics
返回值
类型:System.Collections.Generic.Dictionary<Int32, Double>