SearchServiceApplicationProxy.BeginTuningSession method

Starts a tuning session for the given ranking model.

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

Syntax

'Declaration
Public Function BeginTuningSession ( _
    searchObjectOwner As SearchObjectOwner, _
    draftModelId As Guid _
) As Integer
'Usage
Dim instance As SearchServiceApplicationProxy
Dim searchObjectOwner As SearchObjectOwner
Dim draftModelId As Guid
Dim returnValue As Integer

returnValue = instance.BeginTuningSession(searchObjectOwner, _
    draftModelId)
public int BeginTuningSession(
    SearchObjectOwner searchObjectOwner,
    Guid draftModelId
)

Parameters

  • draftModelId
    Type: System.Guid

    The ID of the draft ranking model to be tuned.

Return value

Type: System.Int32
The result. 0 indicates successful; -1 indicates an error.

Remarks

This method is used for concurrency. Each ranking model tuning process is allocated a tuning session ID and no two processes can edit the same ranking model simultaneously.

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace