| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
column_create Memos content COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
table_create Lexicon TABLE_PAT_KEY ShortText \ |
| 5 |
--normalizer NormalizerAuto \ |
| 6 |
--default_tokenizer TokenBigram |
| 7 |
column_create Lexicon memos_content COLUMN_INDEX|WITH_POSITION Memos content |
| 8 |
|
| 9 |
load --table Memos |
| 10 |
[ |
| 11 |
["content"], |
| 12 |
["Start Groonga!"], |
| 13 |
["Start Mroonga!"], |
| 14 |
["Start Rroonga!"], |
| 15 |
["Start Ruby!"], |
| 16 |
["Learning Ruby and Groonga..."] |
| 17 |
] |
| 18 |
|
| 19 |
select \ |
| 20 |
--table Memos \ |
| 21 |
--filter 'query("content", "rroonga content:@rroonga", \ |
| 22 |
{"expander": {"rroonga": ["rroonga", "Ruby groonga"]}})' |