Compartilhar via


SearchSpec.TermMatchPrefix Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.AppSearch.SearchTermMatch enum directly instead of this field.

Query terms will match indexed tokens when the query term is a prefix of the token.

[Android.Runtime.Register("TERM_MATCH_PREFIX", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.AppSearch.SearchTermMatch enum directly instead of this field.", true)]
public const Android.App.AppSearch.SearchTermMatch TermMatchPrefix = 2;
[<Android.Runtime.Register("TERM_MATCH_PREFIX", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.AppSearch.SearchTermMatch enum directly instead of this field.", true)>]
val mutable TermMatchPrefix : Android.App.AppSearch.SearchTermMatch

Field Value

Value = 2

Implements

Attributes

Remarks

Query terms will match indexed tokens when the query term is a prefix of the token.

For example, a query term "foo" will match indexed tokens like "foo", "foot", and "football".

Java documentation for android.app.appsearch.SearchSpec.TERM_MATCH_PREFIX.

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.

Applies to