0

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

1 回答 1

1

当然,你可以这样做:

   from d in docs.YourCollections
   select new
   {
      t5 = t1.t2.Select(a => a.t3.t4.t5 )
   }
于 2014-12-09T14:31:34.803 回答