SearchServiceApplication.ImportPopularQueries method

SharePoint 2013

Imports a list of popular queries for the given SearchObjectOwner.

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

public int ImportPopularQueries(
	SearchObjectOwner webOwner,
	SourceRecord source,
	List<PopularQuery> queries,
	int ownerVolume
)

Parameters

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

The owner of the search site hierarchy.

source
Type: Microsoft.Office.Server.Search.Administration.Query.SourceRecord

The result source of the queries to retrieve.

queries
Type: System.Collections.Generic.List<PopularQuery>

A list of popular queries to import.

ownerVolume
Type: System.Int32

The number of queries to import. If this value is set to 0, all previously imported queries will be cleared.

Return value

Type: System.Int32
The total number of queries that were imported.

Implements

ISearchSiteAdministrationServiceApplication.ImportPopularQueries(SearchObjectOwner, SourceRecord, List<PopularQuery>, Int32)
Show: