SearchServiceApplicationProxy.HighlightStringValueQuerySuggestions 方法

突出显示在指定的字符串值的指定的查询条件的所有匹配项。

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

语法

声明
Public Function HighlightStringValueQuerySuggestions ( _
    properties As QueryProperties, _
    strValue As String, _
    fLastTermByPrefix As Boolean _
) As HighlightedString
用法
Dim instance As SearchServiceApplicationProxy
Dim properties As QueryProperties
Dim strValue As String
Dim fLastTermByPrefix As Boolean
Dim returnValue As HighlightedString

returnValue = instance.HighlightStringValueQuerySuggestions(properties, _
    strValue, fLastTermByPrefix)
public HighlightedString HighlightStringValueQuerySuggestions(
    QueryProperties properties,
    string strValue,
    bool fLastTermByPrefix
)

参数

  • strValue
    类型:System.String

    要突出显示的字符串的值。

  • fLastTermByPrefix
    类型:System.Boolean

    true表示将突出显示匹配的查询中的最后一个令牌前缀的strValue参数中任何标记的标记 ;否则为false。

返回值

类型:Microsoft.Office.Server.Search.Query.HighlightedString
中的所有匹配项的指定查询条件的突出显示的值。

异常

异常 条件
Exception

在应用程序执行期间出现错误。

备注

此方法突出显示所有指定的查询词的匹配项的每个术语括在开始 (<b>) 和结束 (</b>) 标记。

另请参阅

引用

SearchServiceApplicationProxy 类

SearchServiceApplicationProxy 成员

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