1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
[
{
"_type": "Index",
"propertyName": "test1",
"propertyType": "string"
},
{
"_type": "Index",
"propertyName": "test2.nested",
"propertyType": "string"
},
{
"_type": "_schemaType",
"name": "com.test.IndexedView",
"schema": {
"type": "object",
"extends": {"$ref": "View"}
}
},
{
"_type": "Map",
"targetType": "com.test.IndexedView",
"map": {
"com.test.indextest": "function (o) { v = {'test3': {'nested': o.test2.nested}}; jsondb.emit(v); }"
}
},
{
"_type": "Index",
"propertyName": "test3.nested",
"propertyType": "string",
"objectType": "com.test.IndexedView"
},
{
"_type": "com.test.indextest",
"test1": "abc",
"test2": {"nested": "123"}
},
{
"_type": "com.test.indextest",
"test1": "def",
"test2": {"nested": "456"}
}
]
|