SearchSuggestionCollection.AppendQuerySuggestion | appendQuerySuggestion method

Applies to Windows only

Appends a query suggestion to the list of search suggestions for the search pane.

Syntax


searchSuggestionCollection.appendQuerySuggestion(text);

Parameters

text

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The text of the query suggestion.

Remarks

A query suggestion is a suggestion that the user can select as his or her query.

The search pane can display 5 suggestions, at most. Additionally, each separator you use takes the place of a suggestion and lowers the number of suggestions that you can display. Learn more about displaying suggestions in Guidelines and checklist for search.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.ApplicationModel.Search
Windows::ApplicationModel::Search [C++]

Metadata

Windows.winmd

See also

Search contract sample
Guidelines and checklist for search
Reference
SearchSuggestionCollection class
SearchPane.SuggestionsRequested event
SearchPaneSuggestionsRequestedEventArgs class
SearchPaneSuggestionsRequestedEventArgs.Request property
SearchPaneSuggestionsRequest class
SearchPaneSuggestionsRequest.SearchSuggestionCollection property

 

 

Show:
© 2014 Microsoft