SearchSpec.Builder.SetSnippetCountPerProperty(Int32) 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 snippetCountPerProperty.
[Android.Runtime.Register("setSnippetCountPerProperty", "(I)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder SetSnippetCountPerProperty(int snippetCountPerProperty);
[<Android.Runtime.Register("setSnippetCountPerProperty", "(I)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.SetSnippetCountPerProperty : int -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- snippetCountPerProperty
- Int32
Value is between 0 and ERROR(/android.app.appsearch.SearchSpec#MAX_SNIPPET_PER_PROPERTY_COUNT) inclusive
Returns
- Attributes
Remarks
Sets snippetCountPerProperty. Only the first snippetCountPerProperty snippets for each property of each GenericDocument will contain snippet information. If set to 0, snippeting is disabled and the list returned from SearchResult.getMatchInfos will be empty. The default behavior is to snippet all matches a property contains, up to the maximum value of 10,000.
Android reference for android.app.appsearch.SearchSpec.Builder.setSnippetCountPerProperty.
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.