Export (0) Print
Expand All

Query.GetQuerySuggestions method

Returns a list of query suggestions matching the search terms typed in the search box.

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

public StringCollection GetQuerySuggestions(
	int iNumberOfSuggestions,
	bool fPreQuerySuggestions,
	bool fHitHighlighting,
	bool fCapitalizeFirstLetters
)

Parameters

iNumberOfSuggestions
Type: System.Int32

Specifies the number of suggestions to return.

fPreQuerySuggestions
Type: System.Boolean

Specifies whether pre query suggestions should be returned.

fHitHighlighting
Type: System.Boolean

Specifies whether parts of the query suggestion returned should be hit-highlighted.

fCapitalizeFirstLetters
Type: System.Boolean

Specifies whether the first letter in the query suggestion should be capitalized.

Return value

Type: System.Collections.Specialized.StringCollection
The list of query suggestions.

Query suggestions are generated based upon the frequency of usage. The most frequently used search terms are returned.

Community Additions

ADD
Show:
© 2014 Microsoft