語言

SearchSpec.Builder.SetTermMatch(Int32) 方法

定義

設定查詢詞在索引中應如何匹配 TermMatchCode。

[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

參數

termMatchType
Int32

價值是以下之一:SearchSpec.TERM_MATCH_EXACT_ONLY SearchSpec.TERM_MATCH_PREFIX

傳回

屬性

備註

設定查詢詞在索引中應如何匹配 TermMatchCode。 若未呼叫此方法,預設術語為 SearchSpec.TERM_MATCH_PREFIX。

Android 參考資料。android.app.appsearch.SearchSpec.Builder.setTermMatch

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於