語言

AppSearchSchema.DocumentPropertyConfig.Builder.SetShouldIndexNestedProperties 方法

定義

配置巢狀文件中的屬性是否應依照該文件的結構進行索引。

[Android.Runtime.Register("setShouldIndexNestedProperties", "(Z)Landroid/app/appsearch/AppSearchSchema$DocumentPropertyConfig$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.AppSearchSchema.DocumentPropertyConfig.Builder SetShouldIndexNestedProperties(bool indexNestedProperties);
[<Android.Runtime.Register("setShouldIndexNestedProperties", "(Z)Landroid/app/appsearch/AppSearchSchema$DocumentPropertyConfig$Builder;", "", ApiSince=31)>]
member this.SetShouldIndexNestedProperties : bool -> Android.App.AppSearch.AppSearchSchema.DocumentPropertyConfig.Builder

參數

indexNestedProperties
Boolean

在此設定中是否啟用巢狀屬性的索引。

傳回

這個建商實例。

屬性

備註

配置巢狀文件中的屬性是否應依照該文件的結構進行索引。 若為 false,巢狀屬性不會依該結構自動索引。 若要索引巢狀文件中的部分屬性,請將此設定為 false,並使用 addIndexableNestedProperties(Collection)。

Android 參考資料。android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder.setShouldIndexNestedProperties

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

適用於