SearchTermMatch Enum

Definition

public enum SearchTermMatch
type SearchTermMatch = 
Inheritance
SearchTermMatch

Fields

Name Value Description
ExactOnly 1

Query terms will only match exact tokens in the index. For example, a query term "foo" will only match indexed token "foo", and not "foot" or "football".

Android reference for android.app.appsearch.SearchSpec.TERM_MATCH_EXACT_ONLY.

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.

Prefix 2

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".

Android reference 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