SearchServiceApplication.AddSingleJudgementForTuningQuery method
Associates a relevance judgement with a JudgedDocument that was previously marked as being Unjudged with respect to a given TuningQuery.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function AddSingleJudgementForTuningQuery ( _
searchObjectOwner As SearchObjectOwner, _
QueryId As Integer, _
DocId As Integer, _
LabelId As Short _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim QueryId As Integer
Dim DocId As Integer
Dim LabelId As Short
Dim returnValue As Integer
returnValue = instance.AddSingleJudgementForTuningQuery(searchObjectOwner, _
QueryId, DocId, LabelId)
public int AddSingleJudgementForTuningQuery(
SearchObjectOwner searchObjectOwner,
int QueryId,
int DocId,
short LabelId
)
Parameters
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
- QueryId
Type: System.Int32
- DocId
Type: System.Int32
- LabelId
Type: System.Int16
Return value
Type: System.Int32
The result. 0 indicates successful; -1 indicates an error.
Remarks
A JudgedDocument is a URL with a judgement that describes how relevant the URL is with respect to a given TuningQuery.
See also
Reference
SearchServiceApplication class