Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 2.12 KB

localcontentsuggestionsettings_aqsfilter.md

File metadata and controls

35 lines (22 loc) · 2.12 KB
-api-id -api-type
P:Windows.ApplicationModel.Search.LocalContentSuggestionSettings.AqsFilter
winrt property

Windows.ApplicationModel.Search.LocalContentSuggestionSettings.AqsFilter

-description

An Advanced Query Syntax (AQS) string that limits the types and kinds of files that are used to provide suggestions. If no Advanced Query Syntax (AQS) string is specified, suggestions are provided from all local files in locations specified by the Locations property.

-property-value

The Advanced Query Syntax (AQS) string that is used to refine which local, indexed files are used to provide suggestions. By default, this string is empty.

-remarks

Important

To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.

You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract) or SearchBox APIs in apps for Windows 10 or later.

If local suggestions are disabled, this property has no effect. Set LocalContentSuggestionSettings.Enabled property to true to display local suggestions in the search pane.

Use an AQS filter to help keep local suggestions relevant. For example, if your app is a video player, you may want to limit suggestions to videos or a specific file type.

-examples

-see-also

Search contract sample (Windows 8), LocalContentSuggestionSettings class, SearchPane.SetLocalContentSuggestionSettings method