Debian Codegraph @

test/command/suite/select/fuzzy/output_trace_log/json.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 {"content": "They are pens"}
15 ]
16
17 select Memos \
18 --match_columns content \
19 --query "Thas OR ere" \
20 --fuzzy_max_distance 1 \
21 --output_columns *,_score \
22 --command_version 3 \
23 --output_trace_log yes