SearchServiceApplicationProxy.CreateDraftModelForTuning method

Creates a draft copy of an existing ranking model to be tuned.

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

Syntax

'Declaration
Public Function CreateDraftModelForTuning ( _
    searchObjectOwner As SearchObjectOwner, _
    modelId As Guid, _
    newDraftModelId As Guid, _
    restrictToLinear As Boolean _
) As Integer
'Usage
Dim instance As SearchServiceApplicationProxy
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
)

Parameters

  • modelId
    Type: System.Guid

    The ranking model to be copied.

  • newDraftModelId
    Type: System.Guid

    The GUID to be given to the draft copy of the ranking model.

  • restrictToLinear
    Type: System.Boolean

    Specifies whether to use a linear model for the first stage or a neural network.

Return value

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

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace