| 1 |
table_create Terms TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Terms reading COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Readings TABLE_PAT_KEY ShortText --normalizer NormalizerAuto |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Readings terms_reading COLUMN_INDEX Terms reading |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Terms |
| 10 |
[ |
| 11 |
{"reading": "ムルンガ"}, |
| 12 |
{"reading": "グルンガ"}, |
| 13 |
{"reading": "グループ"} |
| 14 |
] |
| 15 |
[[0,0.0,0.0],3] |
| 16 |
select Terms --filter 'prefix_rk_search(reading, "gur")' |
| 17 |
[ |
| 18 |
[ |
| 19 |
0, |
| 20 |
0.0, |
| 21 |
0.0 |
| 22 |
], |
| 23 |
[ |
| 24 |
[ |
| 25 |
[ |
| 26 |
2 |
| 27 |
], |
| 28 |
[ |
| 29 |
[ |
| 30 |
"_id", |
| 31 |
"UInt32" |
| 32 |
], |
| 33 |
[ |
| 34 |
"reading", |
| 35 |
"ShortText" |
| 36 |
] |
| 37 |
], |
| 38 |
[ |
| 39 |
2, |
| 40 |
"グルンガ" |
| 41 |
], |
| 42 |
[ |
| 43 |
3, |
| 44 |
"グループ" |
| 45 |
] |
| 46 |
] |
| 47 |
] |
| 48 |
] |