SearchServiceApplication.AddSingleJudgementForQuery 方法
将单个的相关性判断添加到后端的数据库服务器。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function AddSingleJudgementForQuery ( _
searchObjectOwner As SearchObjectOwner, _
userQuery As String, _
Url As String, _
LabelId As Short _
) As Integer
用法
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim userQuery As String
Dim Url As String
Dim LabelId As Short
Dim returnValue As Integer
returnValue = instance.AddSingleJudgementForQuery(searchObjectOwner, _
userQuery, Url, LabelId)
public int AddSingleJudgementForQuery(
SearchObjectOwner searchObjectOwner,
string userQuery,
string Url,
short LabelId
)
参数
searchObjectOwner
类型:Microsoft.Office.Server.Search.Administration.SearchObjectOwner搜索站点层次结构的所有者。
- userQuery
类型:System.String
- Url
类型:System.String
- LabelId
类型:System.Int16
返回值
类型:System.Int32
结果。0 表示成功。-1 指示错误。