SearchServiceApplication.HighlightStringValueQuerySuggestions method

Highlights all occurrences of the given query terms within a particular string.

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

public HighlightedString HighlightStringValueQuerySuggestions(
	QueryProperties properties,
	string strValue,
	bool fLastTermByPrefix


Type: Microsoft.Office.Server.Search.Query.QueryProperties

The properties of a search query.

Type: System.String

The string to be highlighted.

Type: System.Boolean

true if any token in strValue matches the prefix of the last token, the query will be highlighted; otherwise, false.

Return value

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

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