| 1 |
table_create Menus TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Menus name COLUMN_SCALAR Text |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Keywords TABLE_PAT_KEY ShortText --normalizer NormalizerNFKC100 --default_tokenizer 'TokenTable("table", "Keywords")' |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Keywords index COLUMN_INDEX Menus name |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Keywords |
| 10 |
[ |
| 11 |
{"_key": "焼肉"} |
| 12 |
] |
| 13 |
[[0,0.0,0.0],1] |
| 14 |
load --table Menus |
| 15 |
[ |
| 16 |
{"name": "焼肉定食"} |
| 17 |
] |
| 18 |
[[0,0.0,0.0],1] |
| 19 |
select Menus --match_columns name --query "焼肉弁当" |
| 20 |
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["name","Text"]],[1,"焼肉定食"]]]] |