Export (0) Print
Expand All
Expand Minimize

SearchServiceApplication.CreateOrUpdateQuerySet method

SharePoint 2013

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

public int CreateOrUpdateQuerySet(
	SearchObjectOwner searchObjectOwner,
	int querySetId,
	string querySetName,
	Guid modelId
)

Parameters

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

The owner of the search site hierarchy.

querySetId
Type: System.Int32

The ID of the query set.

querySetName
Type: System.String

The name of the query set.

modelId
Type: System.Guid

The ranking model to associate the query set with.

Return value

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

Community Additions

ADD
Show:
© 2014 Microsoft