SearchServiceApplication.CopyModelForTuning method

Makes a copy of the given base ranking model which is then customized.

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

Syntax

'Declaration
Public Function CopyModelForTuning ( _
    searchObjectOwner As SearchObjectOwner, _
    baseModelId As Guid, _
    newModelId As Guid, _
    newDraftModelId As Guid, _
    sourceId As Guid, _
    newModelName As String, _
    restrictToLinear As Boolean _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim baseModelId As Guid
Dim newModelId As Guid
Dim newDraftModelId As Guid
Dim sourceId As Guid
Dim newModelName As String
Dim restrictToLinear As Boolean
Dim returnValue As Integer

returnValue = instance.CopyModelForTuning(searchObjectOwner, _
    baseModelId, newModelId, newDraftModelId, _
    sourceId, newModelName, restrictToLinear)
public int CopyModelForTuning(
    SearchObjectOwner searchObjectOwner,
    Guid baseModelId,
    Guid newModelId,
    Guid newDraftModelId,
    Guid sourceId,
    string newModelName,
    bool restrictToLinear
)

Parameters

  • baseModelId
    Type: System.Guid

    The base ranking model.

  • newDraftModelId
    Type: System.Guid

    The draft ranking model.

  • newModelName
    Type: System.String

    Name of the new 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

SearchServiceApplication class

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace