| 1 |
table_create Users TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Users name COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Names TABLE_PAT_KEY ShortText |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Names user COLUMN_INDEX Users name |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Users |
| 10 |
[ |
| 11 |
{"name": "Tom"}, |
| 12 |
{"name": "Tomy"}, |
| 13 |
{"name": "Ken"} |
| 14 |
] |
| 15 |
[[0,0.0,0.0],3] |
| 16 |
select Users --filter 'fuzzy_search(Names.user, "Tom")' --output_columns 'name, _score' --match_escalation_threshold -1 |
| 17 |
[ |
| 18 |
[ |
| 19 |
0, |
| 20 |
0.0, |
| 21 |
0.0 |
| 22 |
], |
| 23 |
[ |
| 24 |
[ |
| 25 |
[ |
| 26 |
2 |
| 27 |
], |
| 28 |
[ |
| 29 |
[ |
| 30 |
"name", |
| 31 |
"ShortText" |
| 32 |
], |
| 33 |
[ |
| 34 |
"_score", |
| 35 |
"Int32" |
| 36 |
] |
| 37 |
], |
| 38 |
[ |
| 39 |
"Tom", |
| 40 |
2 |
| 41 |
], |
| 42 |
[ |
| 43 |
"Tomy", |
| 44 |
1 |
| 45 |
] |
| 46 |
] |
| 47 |
] |
| 48 |
] |