Partilhar via


SearchServiceApplicationProxy.HighlightStringValueQuerySuggestions Method

Highlights all the occurrences of the specified query terms in a specified string value.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function HighlightStringValueQuerySuggestions ( _
    properties As QueryProperties, _
    strValue As String, _
    fLastTermByPrefix As Boolean _
) As HighlightedString
'Usage
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
)

Parameters

  • strValue
    Type: System.String

    The value of the string to be highlighted.

  • fLastTermByPrefix
    Type: System.Boolean

    true to indicate that any token in the strValue parameter that matches the prefix of the last token in the query will be highlighted; otherwise, false.

Return Value

Type: Microsoft.Office.Server.Search.Query.HighlightedString
The value in which all the occurrences of the specified query terms are highlighted.

Exceptions

Exception Condition
Exception

An error occurred during application execution.

Remarks

This method highlights all of the occurrences of the specified query terms by enclosing each term in opening (<b>) and closing (</b>) tags.

See Also

Reference

SearchServiceApplicationProxy Class

SearchServiceApplicationProxy Members

Microsoft.Office.Server.Search.Administration Namespace