| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
column_create Memos content COLUMN_SCALAR Text |
| 3 |
|
| 4 |
load --table Memos |
| 5 |
[ |
| 6 |
{"content": "リンゴ"}, |
| 7 |
{"content": "りんご"} |
| 8 |
] |
| 9 |
|
| 10 |
table_create Normalizations TABLE_PAT_KEY ShortText |
| 11 |
column_create Normalizations normalized COLUMN_SCALAR ShortText |
| 12 |
|
| 13 |
load --table Normalizations |
| 14 |
[ |
| 15 |
{"_key": "ご", "normalized": "[ご]"} |
| 16 |
] |
| 17 |
|
| 18 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 19 |
--default_tokenizer TokenBigram \ |
| 20 |
--normalizers 'NormalizerNFKC130("unify_kana", true), \ |
| 21 |
NormalizerTable("normalized", "Normalizations.normalized")' |
| 22 |
column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content |
| 23 |
|
| 24 |
select Terms --output_columns _key --limit -1 |
| 25 |
|
| 26 |
select Memos --match_columns content --query 'りん[' |