SearchServiceApplication.CreateDraftModelForTuning 方法

创建现有分级模型要优化的草稿副本。

命名空间:  Microsoft.Office.Server.Search.Administration
程序集:  Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)

语法

声明
Public Function CreateDraftModelForTuning ( _
    searchObjectOwner As SearchObjectOwner, _
    modelId As Guid, _
    newDraftModelId As Guid, _
    restrictToLinear As Boolean _
) As Integer
用法
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim modelId As Guid
Dim newDraftModelId As Guid
Dim restrictToLinear As Boolean
Dim returnValue As Integer

returnValue = instance.CreateDraftModelForTuning(searchObjectOwner, _
    modelId, newDraftModelId, restrictToLinear)
public int CreateDraftModelForTuning(
    SearchObjectOwner searchObjectOwner,
    Guid modelId,
    Guid newDraftModelId,
    bool restrictToLinear
)

参数

  • modelId
    类型:System.Guid

    要将复制的分级模型。

  • newDraftModelId
    类型:System.Guid

    要为分级模型的草稿副本提供 GUID。

  • restrictToLinear
    类型:System.Boolean

    指定是否以用于第一阶段或神经网络的线性模型。

返回值

类型:System.Int32
结果。0 表示成功。-1 指示错误。

另请参阅

引用

SearchServiceApplication 类

SearchServiceApplication 成员

Microsoft.Office.Server.Search.Administration 命名空间