SearchExecutor.ExportPopularQueries method
Exports the popular queries from a SharePoint site.
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function ExportPopularQueries ( _
web As SPWeb, _
sourceId As Guid _
) As List(Of PopularQuery)
'Usage
Dim instance As SearchExecutor
Dim web As SPWeb
Dim sourceId As Guid
Dim returnValue As List(Of PopularQuery)
returnValue = instance.ExportPopularQueries(web, _
sourceId)
public List<PopularQuery> ExportPopularQueries(
SPWeb web,
Guid sourceId
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe SharePoint site where popular queries should be exported from.
sourceId
Type: System.GuidThe GUID of the Result Source that exported queries are run with.
Return value
Type: System.Collections.Generic.List<PopularQuery>
A list of the popular queries based on the pre-defined parameters.