SearchServiceApplicationProxy.CreateModel - Méthode
Crée un modèle de classement dans les fonctionnalités de classement données.
Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans Microsoft.Office.Server.Search.dll)
Syntaxe
'Déclaration
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
'Utilisation
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
)
Paramètres
searchObjectOwner
Type : Microsoft.Office.Server.Search.Administration.SearchObjectOwnerLe propriétaire de la hiérarchie de site de recherche.
- rankingModelId
Type : System.Guid
- modelSource
Type : System.Guid
modelName
Type : System.StringNom du modèle de classement.
modelDescription
Type : System.StringDescription du modèle de classement.
staticFeatures
Type : System.Collections.Generic.List<StaticFeature>Une liste contenant toutes les fonctionnalités de classement statiques disponibles dans le modèle de classement.
dynamicFeatures
Type : System.Collections.Generic.List<DynamicFeature>Une liste contenant toutes les fonctionnalités de classement dynamiques disponibles dans le modèle de classement.
- secondLayerWeights
Type : System.Collections.Generic.List<Double>
- secondLayerThresholds
Type : System.Collections.Generic.List<Double>
- defaultWeight
Type : System.Double
Valeur renvoyée
Type : System.Int32
Voir aussi
Référence
SearchServiceApplicationProxy classe
SearchServiceApplicationProxy - Membres
Microsoft.Office.Server.Search.Administration - Espace de noms