SearchSuggestionSpec.Builder.AddFilterProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds property paths for the specified type to the property filter of SearchSuggestionSpec Entry.
[Android.Runtime.Register("addFilterProperties", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=35)]
public Android.App.AppSearch.SearchSuggestionSpec.Builder AddFilterProperties(string schema, System.Collections.Generic.ICollection<string> propertyPaths);
[<Android.Runtime.Register("addFilterProperties", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=35)>]
member this.AddFilterProperties : string * System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.SearchSuggestionSpec.Builder
Parameters
- schema
- String
the AppSearchSchema that contains the target properties. This value cannot be null.
- propertyPaths
- ICollection<String>
The String version of PropertyPath. A dot-delimited sequence of property names indicating which property in the document these snippets correspond to. This value cannot be null.
Returns
- Attributes
Remarks
Adds property paths for the specified type to the property filter of SearchSuggestionSpec Entry. Only search for suggestions that has content under the specified property. If property paths are added for a type, then only the properties referred to will be retrieved for results of that type. If a property path that is specified isn't present in a result, it will be ignored for that result. Property paths cannot be null. If no property paths are added for a particular type, then all properties of results of that type will be retrieved. Example properties: 'body', 'sender.name', 'sender.emailaddress', etc.
Android reference for android.app.appsearch.SearchSuggestionSpec.Builder.addFilterProperties.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.