SearchServiceApplication.CreateModel method

SharePoint 2013

Creates a ranking model from the given rank features.

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

public int CreateModel(
	SearchObjectOwner searchObjectOwner,
	Guid rankingModelId,
	Guid modelSource,
	string modelName,
	string modelDescription,
	List<StaticFeature> staticFeatures,
	List<DynamicFeature> dynamicFeatures,
	List<double> secondLayerWeights,
	List<double> secondLayerThresholds,
	double defaultWeight
)

Parameters

searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwner

The owner of the search site hierarchy.

rankingModelId
Type: System.Guid
modelSource
Type: System.Guid
modelName
Type: System.String

Name of the ranking model.

modelDescription
Type: System.String

Description of the ranking model.

staticFeatures
Type: System.Collections.Generic.List<StaticFeature>

A list containing all of the static rank features available in the ranking model.

dynamicFeatures
Type: System.Collections.Generic.List<DynamicFeature>

A list containing all of the dynamic rank features available in the ranking model.

secondLayerWeights
Type: System.Collections.Generic.List<Double>
secondLayerThresholds
Type: System.Collections.Generic.List<Double>
defaultWeight
Type: System.Double

Return value

Type: System.Int32
Show: