test/command/suite/select/function/fuzzy_search/index/transposition_multibyte.expected
raw| 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": "aaあ"}, |
| 12 | {"name": "あうi"}, |
| 13 | {"name": "あう"}, |
| 14 | {"name": "あi"}, |
| 15 | {"name": "iう"} |
| 16 | ] |
| 17 | [[0,0.0,0.0],5] |
| 18 | select Users --filter 'fuzzy_search(name, "あiう", {"with_transposition": true, "max_distance": 3})' --output_columns 'name, _score' --match_escalation_threshold -1 |
| 19 | [ |
| 20 | [ |
| 21 | 0, |
| 22 | 0.0, |
| 23 | 0.0 |
| 24 | ], |
| 25 | [ |
| 26 | [ |
| 27 | [ |
| 28 | 5 |
| 29 | ], |
| 30 | [ |
| 31 | [ |
| 32 | "name", |
| 33 | "ShortText" |
| 34 | ], |
| 35 | [ |
| 36 | "_score", |
| 37 | "Int32" |
| 38 | ] |
| 39 | ], |
| 40 | [ |
| 41 | "aaあ", |
| 42 | 1 |
| 43 | ], |
| 44 | [ |
| 45 | "あうi", |
| 46 | 3 |
| 47 | ], |
| 48 | [ |
| 49 | "あう", |
| 50 | 3 |
| 51 | ], |
| 52 | [ |
| 53 | "あi", |
| 54 | 3 |
| 55 | ], |
| 56 | [ |
| 57 | "iう", |
| 58 | 3 |
| 59 | ] |
| 60 | ] |
| 61 | ] |
| 62 | ] |