| 1 |
table_create Tags TABLE_PAT_KEY ShortText |
| 2 |
|
| 3 |
table_create Memos TABLE_HASH_KEY ShortText |
| 4 |
column_create Memos tags COLUMN_VECTOR Tags |
| 5 |
column_create Memos date COLUMN_SCALAR Time |
| 6 |
|
| 7 |
load --table Memos |
| 8 |
[ |
| 9 |
{"_key": "Groonga is fast!", "tags": ["full-text-search"], "date": "2014-11-16 00:00:00"}, |
| 10 |
{"_key": "Mroonga is fast!", "tags": ["mysql", "full-text-search"], "date": "2014-11-16 00:00:00"}, |
| 11 |
{"_key": "Groonga sticker!", "tags": ["full-text-search", "sticker"], "date": "2014-11-16 00:00:00"}, |
| 12 |
{"_key": "Rroonga is fast!", "tags": ["full-text-search", "ruby"], "date": "2014-11-17 00:00:00"}, |
| 13 |
{"_key": "Groonga is good!", "tags": ["full-text-search"], "date": "2014-11-17 00:00:00"} |
| 14 |
] |
| 15 |
|
| 16 |
select Memos \ |
| 17 |
--drilldowns[tags].keys tags,date \ |
| 18 |
--drilldowns[tags].output_columns _key[0],_key[1],_nsubrecs |