Export (0) Print
Expand All
Expand Minimize

SearchServiceApplication.GetQuerySuggestionsWithResults method

SharePoint 2013

Returns a collection of query suggestions that match the specific search terms.

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

public QuerySuggestionResults GetQuerySuggestionsWithResults(
	QueryProperties properties,
	int iNumberOfQuerySuggestions,
	int iNumberOfResultSuggestions,
	bool fPreQuerySuggestions,
	bool fHitHighlighting,
	bool fCapitalizeFirstLetters,
	bool fPrefixMatchAllTerms
)

Parameters

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

The properties of the query.

iNumberOfQuerySuggestions
Type: System.Int32

Specifies the number of suggestions the user would like to receive.

iNumberOfResultSuggestions
Type: System.Int32

Specifies the maximum number of suggestions to return.

fPreQuerySuggestions
Type: System.Boolean

true to return the pre-query suggestions; otherwise, false.

fHitHighlighting
Type: System.Boolean

true to highlight the returned query suggestion; otherwise, false.

fCapitalizeFirstLetters
Type: System.Boolean

true to capitalize the first letter in the query suggestion; otherwise, false.

fPrefixMatchAllTerms
Type: System.Boolean

Specifies if the suggestions returned should be prefix matched with the query text.

Return value

Type: Microsoft.Office.Server.Search.Query.QuerySuggestionResults
The list of query suggestions.

Community Additions

ADD
Show:
© 2014 Microsoft