是否可以使用ravendb studio创建嵌套字段索引(在字段 t5 上)?
{
"p": 297641,
"t1": {
"t2": [
{
"t3": {
"t4": {
"t5": "I would like index that field"
}
},
"nr_czesci": 3,
"waluta": "PLN"
},
{
"t3": {
"t4": {
"t5": "I would like index that field 2"
}
},
"nr_czesci": 4,
"waluta": "PLN"
}
]
}
}
答案 0 :(得分:1)
当然,你可以这样做:
from d in docs.YourCollections
select new
{
t5 = t1.t2.Select(a => a.t3.t4.t5 )
}