13 对象存储
一、 对象存储
-
下图中的 Address就是嵌套对象
-
查看它的mapping,可以看到address有自己的属性
-
实际存储:{"Name":"Qi Wei","Age":22,"Address.Country":"China","Address.Province":"Sichuan","Address.City":"Chengdu"}
二、数组对象:
-
对象:PUT /beauties/cn/4{
"Name":"Zhao liying",
"House":[
{"Name":"Botany","Street":"Cascade"},
{"Name":"Auchland","Street":"Queen"}
]
}
-
实际存储:列式Name:["Botany","Auchland"],Street:["Cascade","Queen"]