SearchServiceApplication.AddSingleJudgementForQuery method

SharePoint 2013

Adds a single relevance judgment to the backend database server.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

public int AddSingleJudgementForQuery(
	SearchObjectOwner searchObjectOwner,
	string userQuery,
	string Url,
	short LabelId
)

Parameters

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

The owner of the search site hierarchy.

userQuery
Type: System.String
Url
Type: System.String
LabelId
Type: System.Int16

Return value

Type: System.Int32
The result. 0 indicates successful; -1 indicates an error.
Show: