SearchServiceApplicationProxy.CreateModel 方法
从给定的秩特征创建评级模型。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function CreateModel ( _
searchObjectOwner As SearchObjectOwner, _
rankingModelId As Guid, _
modelSource As Guid, _
modelName As String, _
modelDescription As String, _
staticFeatures As List(Of StaticFeature), _
dynamicFeatures As List(Of DynamicFeature), _
secondLayerWeights As List(Of Double), _
secondLayerThresholds As List(Of Double), _
defaultWeight As Double _
) As Integer
用法
Dim instance As SearchServiceApplicationProxy
Dim searchObjectOwner As SearchObjectOwner
Dim rankingModelId As Guid
Dim modelSource As Guid
Dim modelName As String
Dim modelDescription As String
Dim staticFeatures As List(Of StaticFeature)
Dim dynamicFeatures As List(Of DynamicFeature)
Dim secondLayerWeights As List(Of Double)
Dim secondLayerThresholds As List(Of Double)
Dim defaultWeight As Double
Dim returnValue As Integer
returnValue = instance.CreateModel(searchObjectOwner, _
rankingModelId, modelSource, modelName, _
modelDescription, staticFeatures, _
dynamicFeatures, secondLayerWeights, _
secondLayerThresholds, defaultWeight)
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
)
参数
searchObjectOwner
类型:Microsoft.Office.Server.Search.Administration.SearchObjectOwner搜索站点层次结构的所有者。
- rankingModelId
类型:System.Guid
- modelSource
类型:System.Guid
modelName
类型:System.String分级模型的名称。
modelDescription
类型:System.String分级模型的描述。
staticFeatures
类型:System.Collections.Generic.List<StaticFeature>包含的所有静态秩秩模型中可用功能的列表。
dynamicFeatures
类型:System.Collections.Generic.List<DynamicFeature>包含的所有动态秩秩模型中可用功能的列表。
- secondLayerWeights
类型:System.Collections.Generic.List<Double>
- secondLayerThresholds
类型:System.Collections.Generic.List<Double>
- defaultWeight
类型:System.Double
返回值
类型:System.Int32
另请参阅
引用
SearchServiceApplicationProxy 类