| 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 year COLUMN_SCALAR Int32 |
| 6 |
|
| 7 |
load --table Memos |
| 8 |
[ |
| 9 |
{"_key": "Groonga is fast!", "tags": ["full-text-search"], "year": 2019}, |
| 10 |
{"_key": "Mroonga is fast!", "tags": ["mysql", "full-text-search"], "year": 2019}, |
| 11 |
{"_key": "Groonga sticker!", "tags": ["full-text-search", "sticker"], "year": 2020}, |
| 12 |
{"_key": "Rroonga is fast!", "tags": ["full-text-search", "ruby"], "year": 2020}, |
| 13 |
{"_key": "Groonga is good!", "tags": ["full-text-search"], "year": 2020} |
| 14 |
] |
| 15 |
|
| 16 |
select Memos \ |
| 17 |
--filter '_id > 0' \ |
| 18 |
--drilldowns[tags].keys 'tags,year >= 2020' \ |
| 19 |
--drilldowns[tags].output_columns _key[0],_key[1],_nsubrecs |