Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SearchServiceApplication.CopyModelForTuning method

SharePoint 2013

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)

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.SearchObjectOwner

The owner of the search site hierarchy.

baseModelId
Type: System.Guid

The base ranking model.

newModelId
Type: System.Guid

The new ranking model.

newDraftModelId
Type: System.Guid

The draft ranking model.

sourceId
Type: System.Guid

The result source.

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.
Show:
© 2015 Microsoft