Debian Codegraph @

test/command/suite/select/function/fuzzy_search/index/transposition_multibyte.test

raw
1 table_create Users TABLE_NO_KEY
2 column_create Users name COLUMN_SCALAR ShortText
3
4 table_create Names TABLE_PAT_KEY ShortText
5 column_create Names user COLUMN_INDEX Users name
6
7 load --table Users
8 [
9 {"name": "aaあ"},
10 {"name": "あうi"},
11 {"name": "あう"},
12 {"name": "あi"},
13 {"name": "iう"}
14 ]
15
16 select Users \
17 --filter 'fuzzy_search(name, "あiう", {"with_transposition": true, "max_distance": 3})' \
18 --output_columns 'name, _score' \
19 --match_escalation_threshold -1