JoinSpec.Builder.SetNestedSearch(String, SearchSpec) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定被連接文件的查詢與 SearchSpec。
[Android.Runtime.Register("setNestedSearch", "(Ljava/lang/String;Landroid/app/appsearch/SearchSpec;)Landroid/app/appsearch/JoinSpec$Builder;", "", ApiSince=34)]
public Android.App.AppSearch.JoinSpec.Builder SetNestedSearch(string nestedQuery, Android.App.AppSearch.SearchSpec nestedSearchSpec);
[<Android.Runtime.Register("setNestedSearch", "(Ljava/lang/String;Landroid/app/appsearch/SearchSpec;)Landroid/app/appsearch/JoinSpec$Builder;", "", ApiSince=34)>]
member this.SetNestedSearch : string * Android.App.AppSearch.SearchSpec -> Android.App.AppSearch.JoinSpec.Builder
參數
- nestedQuery
- String
- nestedSearchSpec
- SearchSpec
傳回
- 屬性
備註
設定被連接文件的查詢與 SearchSpec。 這會對合併文件進行評分與排名,並過濾合併文件。 若SearchSpec.RANKING_STRATEGY_JOIN_AGGREGATE_SCORE設定在外部搜尋規範中,所得訊號將用於對父文件進行排名。 請注意,聚合策略也需要使用 JoinSpec.Builder.setAggregationScoringStrategy 設定,否則預設會是 JoinSpec.AGGREGATION_SCORING_OUTER_RESULT_RANKING_SIGNAL,只會使用父文件的排名訊號。 如果從未呼叫此方法,JoinSpec.getNestedQuery 會回傳一個空字串,表示我們會用所有符合等式約束且未被類型或命名空間過濾器過濾掉的文件來連接。
Android 參考資料。android.app.appsearch.JoinSpec.Builder.setNestedSearch
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。