SearchSpec.Builder.SetTermMatch(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 how the query terms should match TermMatchCode in the index.
[Android.Runtime.Register("setTermMatch", "(I)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder SetTermMatch(int termMatchType);
[<Android.Runtime.Register("setTermMatch", "(I)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.SetTermMatch : int -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- termMatchType
- Int32
Value is one of the following: SearchSpec.TERM_MATCH_EXACT_ONLY SearchSpec.TERM_MATCH_PREFIX
Returns
- Attributes
Remarks
Sets how the query terms should match TermMatchCode in the index. If this method is not called, the default term match type is SearchSpec.TERM_MATCH_PREFIX.
Android reference for android.app.appsearch.SearchSpec.Builder.setTermMatch.
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.