SearchServiceApplication.ImportPopularQueries method
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)
Syntax
'Declaration
Public Function ImportPopularQueries ( _
webOwner As SearchObjectOwner, _
source As SourceRecord, _
queries As List(Of PopularQuery), _
ownerVolume As Integer _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim webOwner As SearchObjectOwner
Dim source As SourceRecord
Dim queries As List(Of PopularQuery)
Dim ownerVolume As Integer
Dim returnValue As Integer
returnValue = instance.ImportPopularQueries(webOwner, _
source, queries, ownerVolume)
public int ImportPopularQueries(
SearchObjectOwner webOwner,
SourceRecord source,
List<PopularQuery> queries,
int ownerVolume
)
Parameters
webOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
source
Type: Microsoft.Office.Server.Search.Administration.Query.SourceRecordThe result source of the queries to retrieve.
queries
Type: System.Collections.Generic.List<PopularQuery>A list of popular queries to import.
ownerVolume
Type: System.Int32The 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
See also
Reference
SearchServiceApplication class