SearchServiceApplicationProxy.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 SearchServiceApplicationProxy
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
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
baseModelId
Type: System.GuidThe base ranking model.
newModelId
Type: System.GuidThe new ranking model.
newDraftModelId
Type: System.GuidThe draft ranking model.
sourceId
Type: System.GuidThe result source.
newModelName
Type: System.StringName of the new ranking model.
restrictToLinear
Type: System.BooleanSpecifies 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