SearchServiceApplication.GetQuerySuggestionCandidates method
Retrieves the list of query suggestion candidates as strings 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 GetQuerySuggestionCandidates ( _
owner As SearchObjectOwner, _
sourceId As Guid _
) As List(Of String)
'Usage
Dim instance As SearchServiceApplication
Dim owner As SearchObjectOwner
Dim sourceId As Guid
Dim returnValue As List(Of String)
returnValue = instance.GetQuerySuggestionCandidates(owner, _
sourceId)
public List<string> GetQuerySuggestionCandidates(
SearchObjectOwner owner,
Guid sourceId
)
Parameters
owner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
sourceId
Type: System.GuidIdentifies the list or site for which to retrieve the query suggestions.
Return value
Type: System.Collections.Generic.List<String>
A list of query suggestions.
Implements
ISearchSiteAdministrationServiceApplication.GetQuerySuggestionCandidates(SearchObjectOwner, Guid)
See also
Reference
SearchServiceApplication class