| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
column_create Memos content COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
#@on-error omit |
| 5 |
table_create Lexicon TABLE_PAT_KEY ShortText \ |
| 6 |
--default_tokenizer TokenMecab \ |
| 7 |
--normalizer NormalizerNFKC150 |
| 8 |
#@on-error default |
| 9 |
column_create Lexicon memos_content \ |
| 10 |
COLUMN_INDEX|WITH_POSITION Memos content |
| 11 |
|
| 12 |
load --table Memos |
| 13 |
[ |
| 14 |
{"content": "とても早いです"} |
| 15 |
] |
| 16 |
|
| 17 |
select Memos \ |
| 18 |
--match_columns content \ |
| 19 |
--query "ともて" \ |
| 20 |
--fuzzy_max_distance 1 \ |
| 21 |
--output_columns *,_score |