SearchServiceApplication.GetPopularQueries method
Gets a list of frequent queries which are used for personal suggestions.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetPopularQueries ( _
startQuery As Integer, _
batchSize As Integer, _
webOwner As SearchObjectOwner, _
source As SourceRecord, _
timeStamp As DateTime _
) As PopularQueriesExportResults
'Usage
Dim instance As SearchServiceApplication
Dim startQuery As Integer
Dim batchSize As Integer
Dim webOwner As SearchObjectOwner
Dim source As SourceRecord
Dim timeStamp As DateTime
Dim returnValue As PopularQueriesExportResults
returnValue = instance.GetPopularQueries(startQuery, _
batchSize, webOwner, source, timeStamp)
public PopularQueriesExportResults GetPopularQueries(
int startQuery,
int batchSize,
SearchObjectOwner webOwner,
SourceRecord source,
DateTime timeStamp
)
Parameters
startQuery
Type: System.Int32The number (offset) of the first query to retrieve.
batchSize
Type: System.Int32The total number of queries to retrieve.
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.
timeStamp
Type: System.DateTimeUsed to validate if the queries to be returned are current.
Return value
Type: Microsoft.Office.Server.Search.Query.PopularQueriesExportResults
The retrieved queries; NULL if the popular queries are not current. For example, if the timer job persisting the popular queries has not run.
Implements
See also
Reference
SearchServiceApplication class
SearchServiceApplication members
Microsoft.Office.Server.Search.Administration namespace
ImportPopularQueries()