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
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
modelId
Type: System.GuidThe ranking model to be copied.
newDraftModelId
Type: System.GuidThe GUID to be given to the draft copy of the 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