SearchSpec.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.
Sets the property filter paths for the specified schema type.
[Android.Runtime.Register("addFilterProperties", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=35)]
public Android.App.AppSearch.SearchSpec.Builder AddFilterProperties(string schema, System.Collections.Generic.ICollection<string> propertyPaths);
[<Android.Runtime.Register("addFilterProperties", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=35)>]
member this.AddFilterProperties : string * System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- schema
- String
The schema type name, or * for types without their own filter. This value cannot be null.
- propertyPaths
- ICollection<String>
A collection of dot-delimited property-path strings. Neither the collection nor its entries can be null.
Returns
This builder instance.
- Attributes
Remarks
Sets the property filter paths for the specified schema type. A later call for the same type replaces its previous paths. Only documents with matches under the specified properties are returned. If a specified property path isn't present in a result, it is ignored for that result. Property paths cannot be null. If neither a type-specific filter nor a wildcard filter is set, all properties of results of that type are searched. Example properties include 'body', 'sender.name', and 'sender.emailaddress'. Paths set for SchemaTypeWildcard apply to results whose types do not have their own paths set.
Android reference for android.app.appsearch.SearchSpec.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.