Debian Codegraph @

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

raw
1 table_create Memos TABLE_NO_KEY
2 column_create Memos content COLUMN_SCALAR ShortText
3
4 table_create Lexicon TABLE_PAT_KEY ShortText \
5 --default_tokenizer TokenNgram \
6 --normalizer NormalizerNFKC150
7 column_create Lexicon memos_content \
8 COLUMN_INDEX|WITH_POSITION Memos content
9
10 load --table Memos
11 [
12 {"content": "This is a pen"},
13 {"content": "That is a pen"}
14 ]
15
16 select Memos \
17 --match_columns content \
18 --query "Thjs" \
19 --fuzzy_max_distance 1 \
20 --output_columns *,_score