SearchServiceApplication.GetQueryLevelMetricsForModel method
Gets a collection of key-value pairs, each of which represents relevance metrics that are calculated on the query results. These metrics are returned for each search query that is part of the specified query set.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetQueryLevelMetricsForModel ( _
searchObjectOwner As SearchObjectOwner, _
rankingModelId As Guid, _
QuerySetId As Integer, _
MetricType As DisplayMetrics _
) As Dictionary(Of Integer, Double)
'Usage
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
)
Parameters
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
rankingModelId
Type: System.GuidThe ranking model for which to get level metrics.
QuerySetId
Type: System.Int32The query set.
- MetricType
Type: DisplayMetrics
Return value
Type: System.Collections.Generic.Dictionary<Int32, Double>
See also
Reference
SearchServiceApplication class