| 1 |
table_create Tags TABLE_HASH_KEY ShortText |
| 2 |
|
| 3 |
table_create Memos TABLE_HASH_KEY ShortText |
| 4 |
column_create Memos date COLUMN_SCALAR Time |
| 5 |
column_create Memos tags COLUMN_VECTOR Tags |
| 6 |
|
| 7 |
load --table Memos |
| 8 |
[ |
| 9 |
{"_key": "Groonga is fast!", "date": "2014-11-16 00:00:00", |
| 10 |
"tags": ["Groonga"]}, |
| 11 |
{"_key": "Mroonga is fast!", "date": "2014-11-16 00:00:00", |
| 12 |
"tags": ["Mroonga", "Groonga"]}, |
| 13 |
{"_key": "Groonga sticker!", "date": "2014-11-16 00:00:00", |
| 14 |
"tags": ["Groonga"]}, |
| 15 |
{"_key": "Rroonga is fast!", "date": "2014-11-17 00:00:00", |
| 16 |
"tags": ["Rroonga", "Groonga"]}, |
| 17 |
{"_key": "Groonga is good!", "date": "2014-11-17 00:00:00", |
| 18 |
"tags": ["Groonga"]} |
| 19 |
] |
| 20 |
|
| 21 |
select Memos \ |
| 22 |
--limit 0 \ |
| 23 |
--output_columns _id \ |
| 24 |
--drilldown[vector].keys date,tags \ |
| 25 |
--drilldown[vector].output_columns _key[0],_key[1],_nsubrecs \ |
| 26 |
--drilldown[vector].sortby -_nsubrecs,_id |