Debian Codegraph @

test/command/suite/select/function/fuzzy_search/with_logical_operation.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": "Tom"},
12 {"name": "Tomy"},
13 {"name": "Tomas"},
14 {"name": "Pom"}
15 ]
16 [[0,0.0,0.0],4]
17 select Names --filter '_key @^ "T" && fuzzy_search(_key, "To", {"max_distance": 2})' --sort_keys _id --output_columns '_key, _score'
18 [
19 [
20 0,
21 0.0,
22 0.0
23 ],
24 [
25 [
26 [
27 2
28 ],
29 [
30 [
31 "_key",
32 "ShortText"
33 ],
34 [
35 "_score",
36 "Int32"
37 ]
38 ],
39 [
40 "Tom",
41 3
42 ],
43 [
44 "Tomy",
45 2
46 ]
47 ]
48 ]
49 ]