Debian Codegraph @

test/command/suite/select/fuzzy/max_distance.expected

raw
1 table_create Memos TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Memos content COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC150
6 [[0,0.0,0.0],true]
7 column_create Lexicon memos_content COLUMN_INDEX|WITH_POSITION Memos content
8 [[0,0.0,0.0],true]
9 load --table Memos
10 [
11 {"content": "This is a pen"},
12 {"content": "That is a pen"}
13 ]
14 [[0,0.0,0.0],2]
15 select Memos --match_columns content --query "Thjs" --fuzzy_max_distance 1 --output_columns *,_score
16 [
17 [
18 0,
19 0.0,
20 0.0
21 ],
22 [
23 [
24 [
25 1
26 ],
27 [
28 [
29 "content",
30 "ShortText"
31 ],
32 [
33 "_score",
34 "Int32"
35 ]
36 ],
37 [
38 "This is a pen",
39 1
40 ]
41 ]
42 ]
43 ]