| 1 |
table_create Users TABLE_NO_KEY |
| 2 |
column_create Users name COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
table_create Names TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit |
| 5 |
column_create Names user COLUMN_INDEX|WITH_POSITION Users name |
| 6 |
|
| 7 |
load --table Users |
| 8 |
[ |
| 9 |
{"name": "Tom Yamada"}, |
| 10 |
{"name": "Tomy Yamada"}, |
| 11 |
{"name": "Ken Yamada"}, |
| 12 |
{"name": "Tom Yamad"} |
| 13 |
] |
| 14 |
|
| 15 |
select Users --filter 'fuzzy_search(name, "Tom Yamad")' \ |
| 16 |
--output_columns 'name, _score' \ |
| 17 |
--match_escalation_threshold -1 |