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

  • sourceId
    Type: System.Guid

    Identifies 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

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace