| 1 |
table_create Users TABLE_HASH_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Memos TABLE_HASH_KEY ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Memos user COLUMN_SCALAR Users |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Memos date COLUMN_SCALAR Time |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Memos tags COLUMN_VECTOR ShortText |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
load --table Memos |
| 12 |
[ |
| 13 |
{"_key": "Groonga is fast!", "user": "alice", "date": "2014-11-16 00:00:00", |
| 14 |
"tags": ["Groonga"]}, |
| 15 |
{"_key": "Mroonga is fast!", "user": "alice", "date": "2014-11-16 00:00:00", |
| 16 |
"tags": ["Mroonga", "Groonga"]}, |
| 17 |
{"_key": "Groonga sticker!", "user": "alice", "date": "2014-11-16 00:00:00", |
| 18 |
"tags": ["Groonga"]}, |
| 19 |
{"_key": "Rroonga is fast!", "user": "alice", "date": "2014-11-17 00:00:00", |
| 20 |
"tags": ["Rroonga", "Groonga"]}, |
| 21 |
{"_key": "Groonga is good!", "user": "alice", "date": "2014-11-17 00:00:00", |
| 22 |
"tags": ["Groonga"]} |
| 23 |
] |
| 24 |
[[0,0.0,0.0],5] |
| 25 |
select Memos --limit 0 --output_columns _id --drilldowns[vector].keys user,tags,date --drilldowns[vector].output_columns _key[0],_key[1],_key[2],_nsubrecs --drilldowns[vector].sortby -_nsubrecs,_id |
| 26 |
[ |
| 27 |
[ |
| 28 |
0, |
| 29 |
0.0, |
| 30 |
0.0 |
| 31 |
], |
| 32 |
[ |
| 33 |
[ |
| 34 |
[ |
| 35 |
5 |
| 36 |
], |
| 37 |
[ |
| 38 |
[ |
| 39 |
"_id", |
| 40 |
"UInt32" |
| 41 |
] |
| 42 |
] |
| 43 |
], |
| 44 |
{ |
| 45 |
"vector": [ |
| 46 |
[ |
| 47 |
4 |
| 48 |
], |
| 49 |
[ |
| 50 |
[ |
| 51 |
"_key[0]", |
| 52 |
null |
| 53 |
], |
| 54 |
[ |
| 55 |
"_key[1]", |
| 56 |
null |
| 57 |
], |
| 58 |
[ |
| 59 |
"_key[2]", |
| 60 |
null |
| 61 |
], |
| 62 |
[ |
| 63 |
"_nsubrecs", |
| 64 |
"Int32" |
| 65 |
] |
| 66 |
], |
| 67 |
[ |
| 68 |
"alice", |
| 69 |
"Groonga", |
| 70 |
1416063600.0, |
| 71 |
3 |
| 72 |
], |
| 73 |
[ |
| 74 |
"alice", |
| 75 |
"Groonga", |
| 76 |
1416150000.0, |
| 77 |
2 |
| 78 |
], |
| 79 |
[ |
| 80 |
"alice", |
| 81 |
"Mroonga", |
| 82 |
1416063600.0, |
| 83 |
1 |
| 84 |
], |
| 85 |
[ |
| 86 |
"alice", |
| 87 |
"Rroonga", |
| 88 |
1416150000.0, |
| 89 |
1 |
| 90 |
] |
| 91 |
] |
| 92 |
} |
| 93 |
] |
| 94 |
] |