SearchServiceApplication.GetQuerySuggestionCandidates 方法
检索查询的建议候选列表中给定SearchObjectOwner的字符串形式。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function GetQuerySuggestionCandidates ( _
owner As SearchObjectOwner, _
sourceId As Guid _
) As List(Of String)
用法
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
)
参数
owner
类型:Microsoft.Office.Server.Search.Administration.SearchObjectOwner搜索站点层次结构的所有者。
sourceId
类型:System.Guid标识列表或网站为其检索查询建议。
返回值
类型:System.Collections.Generic.List<String>
查询建议列表。
实现
ISearchSiteAdministrationServiceApplication.GetQuerySuggestionCandidates(SearchObjectOwner, Guid)