| 1 |
table_create Tags TABLE_PAT_KEY ShortText |
| 2 |
|
| 3 |
table_create Memos TABLE_HASH_KEY ShortText |
| 4 |
column_create Memos tag COLUMN_SCALAR Tags |
| 5 |
|
| 6 |
column_create Tags memos_tag COLUMN_INDEX Memos tag |
| 7 |
|
| 8 |
load --table Memos |
| 9 |
[ |
| 10 |
{"_key": "Groonga is fast", "tag": "groonga"}, |
| 11 |
{"_key": "Mroonga is fast", "tag": "mroonga"}, |
| 12 |
{"_key": "Rroonga is fast", "tag": "rroonga"}, |
| 13 |
{"_key": "Droonga is fast", "tag": "droonga"}, |
| 14 |
{"_key": "Groonga is a HTTP server", "tag": "groonga"} |
| 15 |
] |
| 16 |
|
| 17 |
select Memos \ |
| 18 |
--output_columns _key,tag \ |
| 19 |
--filter 'all_records() && in_values(tag, "groonga", "mroonga", "droonga")' \ |
| 20 |
--sortby _id |