| 1 |
table_create Memos TABLE_HASH_KEY ShortText |
| 2 |
|
| 3 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 4 |
--default_tokenizer TokenBigram \ |
| 5 |
--normalizer NormalizerAuto |
| 6 |
column_create Terms memos_key COLUMN_INDEX|WITH_POSITION Memos _key |
| 7 |
|
| 8 |
load --table Memos |
| 9 |
[ |
| 10 |
{"_key": "Groonga is fast!"}, |
| 11 |
{"_key": "Mroonga is fast!"}, |
| 12 |
{"_key": "Groonga sticker!"}, |
| 13 |
{"_key": "Rroonga is fast!"} |
| 14 |
] |
| 15 |
|
| 16 |
select Memos \ |
| 17 |
--slices[groonga].match_columns '_key' \ |
| 18 |
--slices[groonga].query 'Groonga' \ |
| 19 |
--slices[groonga].output_columns '_key, highlight_html(_key)' |