SearchServiceApplication.AddSingleJudgementForTuningQuery method

SharePoint 2013

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)

public int AddSingleJudgementForTuningQuery(
	SearchObjectOwner searchObjectOwner,
	int QueryId,
	int DocId,
	short LabelId
)

Parameters

searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwner

The 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.

A JudgedDocument is a URL with a judgement that describes how relevant the URL is with respect to a given TuningQuery.

Show: