| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
column_create Memos content COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
table_create Contents TABLE_PAT_KEY ShortText |
| 5 |
column_create Contents memos COLUMN_INDEX|WITH_POSITION Memos content |
| 6 |
|
| 7 |
table_create Synonyms TABLE_PAT_KEY ShortText |
| 8 |
column_create Synonyms words COLUMN_SCALAR ShortText |
| 9 |
|
| 10 |
load --table Memos |
| 11 |
[ |
| 12 |
["content"], |
| 13 |
["groonga"], |
| 14 |
["mroonga"], |
| 15 |
["groonga storage engine"] |
| 16 |
] |
| 17 |
|
| 18 |
load --table Synonyms |
| 19 |
[ |
| 20 |
["_key", "words"], |
| 21 |
["mroon", "groon"] |
| 22 |
] |
| 23 |
|
| 24 |
select --table Memos --query_expander Synonyms.words \ |
| 25 |
--match_columns content --query 'mroon*' |