-api-id | -api-type |
---|---|
P:Windows.ApplicationModel.Search.LocalContentSuggestionSettings.AqsFilter |
winrt property |
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.
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.
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.
Search contract sample (Windows 8), LocalContentSuggestionSettings class, SearchPane.SetLocalContentSuggestionSettings method