| 1 |
table_create Tags TABLE_HASH_KEY ShortText --normalizer NormalizerAuto |
| 2 |
column_create Tags reading COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
table_create Readings TABLE_PAT_KEY ShortText --normalizer NormalizerAuto |
| 5 |
column_create Readings tags_reading COLUMN_INDEX Tags reading |
| 6 |
|
| 7 |
table_create Memos TABLE_HASH_KEY ShortText |
| 8 |
column_create Memos tag COLUMN_SCALAR Tags |
| 9 |
|
| 10 |
column_create Tags memos_tag COLUMN_INDEX Memos tag |
| 11 |
|
| 12 |
|
| 13 |
load --table Tags |
| 14 |
[ |
| 15 |
{"_key": "Mroonga", "reading": "ムルンガ"}, |
| 16 |
{"_key": "Groonga", "reading": "グルンガ"}, |
| 17 |
{"_key": "Group", "reading": "グループ"} |
| 18 |
] |
| 19 |
|
| 20 |
load --table Memos |
| 21 |
[ |
| 22 |
{"_key": "Groonga is great!", "tag": "Groonga"}, |
| 23 |
{"_key": "Groonga and Rroonga", "tag": "Group"}, |
| 24 |
{"_key": "Rroonga is great!", "tag": "Rroonga"} |
| 25 |
] |
| 26 |
|
| 27 |
select Memos --filter 'prefix_rk_search(tag.reading, "gur")' |