嵌套字段上的RavenDb v3索引

时间:2014-12-08 18:19:26

标签: ravendb ravendb-studio

是否可以使用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"
                }
            ]
        }
    }

1 个答案:

答案 0 :(得分:1)

当然,你可以这样做:

   from d in docs.YourCollections
   select new
   {
      t5 = t1.t2.Select(a => a.t3.t4.t5 )
   }