AppSearchSchema.DocumentPropertyConfig.Builder.AddIndexableNestedProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| AddIndexableNestedProperties(ICollection<String>) |
新增一個或多個屬性,方便從巢狀文件索引。 |
| AddIndexableNestedProperties(String[]) |
新增一個或多個屬性,用於從巢狀文件屬性進行索引。 |
AddIndexableNestedProperties(ICollection<String>)
新增一個或多個屬性,方便從巢狀文件索引。
[Android.Runtime.Register("addIndexableNestedProperties", "(Ljava/util/Collection;)Landroid/app/appsearch/AppSearchSchema$DocumentPropertyConfig$Builder;", "", ApiSince=35)]
public Android.App.AppSearch.AppSearchSchema.DocumentPropertyConfig.Builder AddIndexableNestedProperties(System.Collections.Generic.ICollection<string> indexableNestedProperties);
[<Android.Runtime.Register("addIndexableNestedProperties", "(Ljava/util/Collection;)Landroid/app/appsearch/AppSearchSchema$DocumentPropertyConfig$Builder;", "", ApiSince=35)>]
member this.AddIndexableNestedProperties : System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.AppSearchSchema.DocumentPropertyConfig.Builder
參數
- indexableNestedProperties
- ICollection<String>
傳回
- 屬性
備註
新增一個或多個屬性,方便從巢狀文件索引。 新增的屬性會依照該屬性在文件結構定義中的索引配置進行索引。 這個清單中的所有屬性都會消耗 sectionId,不論其實際的索引設定為何——這包括那些實際上不存在的新增屬性,以及在巢狀結構型別中未設定為可索引的屬性。 輸入字串應遵循巢狀屬性路徑的格式,路徑分隔符為 '.'。 這個巢狀文件的屬性名稱不應包含在屬性路徑中。 例如, 考慮一個「組織」結構型態,定義巢狀文件屬性「address」(地址結構型別),其中 Address 有一個巢狀文件屬性「country」(帶有字串「name」屬性的國家結構型態),以及一個字串「street」屬性。 「address」文件屬性中的「street」和「country's name」屬性可以透過呼叫來索引「Organization」結構類型:如果文件屬性中加入任何可索引巢狀屬性,則 DocumentPropertyConfig.Builder.setShouldIndexNestedProperties 必須為 false。 當這點不成立時,嘗試建立 DocumentPropertyConfig 會跳出 IllegalArgumentException。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
AddIndexableNestedProperties(String[])
新增一個或多個屬性,用於從巢狀文件屬性進行索引。
[Android.Runtime.Register("addIndexableNestedProperties", "([Ljava/lang/String;)Landroid/app/appsearch/AppSearchSchema$DocumentPropertyConfig$Builder;", "", ApiSince=35)]
public Android.App.AppSearch.AppSearchSchema.DocumentPropertyConfig.Builder AddIndexableNestedProperties(params string[] indexableNestedProperties);
[<Android.Runtime.Register("addIndexableNestedProperties", "([Ljava/lang/String;)Landroid/app/appsearch/AppSearchSchema$DocumentPropertyConfig$Builder;", "", ApiSince=35)>]
member this.AddIndexableNestedProperties : string[] -> Android.App.AppSearch.AppSearchSchema.DocumentPropertyConfig.Builder
參數
- indexableNestedProperties
- String[]
傳回
- 屬性
備註
新增一個或多個屬性,用於從巢狀文件屬性進行索引。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。