SearchServiceApplication.GetQuerySuggestionsWithResults 方法

返回集合的匹配特定搜索条件的查询建议。

命名空间:  Microsoft.Office.Server.Search.Administration
程序集:  Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)

语法

声明
Public Function GetQuerySuggestionsWithResults ( _
    properties As QueryProperties, _
    iNumberOfQuerySuggestions As Integer, _
    iNumberOfResultSuggestions As Integer, _
    fPreQuerySuggestions As Boolean, _
    fHitHighlighting As Boolean, _
    fCapitalizeFirstLetters As Boolean, _
    fPrefixMatchAllTerms As Boolean _
) As QuerySuggestionResults
用法
Dim instance As SearchServiceApplication
Dim properties As QueryProperties
Dim iNumberOfQuerySuggestions As Integer
Dim iNumberOfResultSuggestions As Integer
Dim fPreQuerySuggestions As Boolean
Dim fHitHighlighting As Boolean
Dim fCapitalizeFirstLetters As Boolean
Dim fPrefixMatchAllTerms As Boolean
Dim returnValue As QuerySuggestionResults

returnValue = instance.GetQuerySuggestionsWithResults(properties, _
    iNumberOfQuerySuggestions, iNumberOfResultSuggestions, _
    fPreQuerySuggestions, fHitHighlighting, _
    fCapitalizeFirstLetters, fPrefixMatchAllTerms)
public QuerySuggestionResults GetQuerySuggestionsWithResults(
    QueryProperties properties,
    int iNumberOfQuerySuggestions,
    int iNumberOfResultSuggestions,
    bool fPreQuerySuggestions,
    bool fHitHighlighting,
    bool fCapitalizeFirstLetters,
    bool fPrefixMatchAllTerms
)

参数

  • iNumberOfQuerySuggestions
    类型:System.Int32

    指定用户希望收到的建议的数量。

  • iNumberOfResultSuggestions
    类型:System.Int32

    指定要返回的建议的最大数量。

  • fPreQuerySuggestions
    类型:System.Boolean

    true返回的预查询建议 ;否则为false。

  • fHitHighlighting
    类型:System.Boolean

    true以突出显示所返回的查询建议。否则为false。

  • fCapitalizeFirstLetters
    类型:System.Boolean

    true查询建议 ; 在第一个字母大写否则为false。

  • fPrefixMatchAllTerms
    类型:System.Boolean

    指定建议是否返回应能与查询文本匹配的前缀。

返回值

类型:Microsoft.Office.Server.Search.Query.QuerySuggestionResults
查询建议列表。

另请参阅

引用

SearchServiceApplication 类

SearchServiceApplication 成员

Microsoft.Office.Server.Search.Administration 命名空间