| 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 Names --filter 'fuzzy_search(_key, "To", {"max_distance": 2, "max_expansion": 1})' --output_columns '_key, _score' --match_escalation_threshold -1 |
| 17 |
[[0,0.0,0.0],[[[1],[["_key","ShortText"],["_score","Int32"]],["Tom",2]]]] |