Debian Codegraph @

test/command/suite/select/fuzzy/prefix_length.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 TokenDelimit \
6 --normalizer NormalizerNFKC150
7 column_create Lexicon memos_content \
8 COLUMN_INDEX|WITH_POSITION Memos content
9
10 load --table Memos
11 [
12 {"content": "これ は ペリカン です"},
13 {"content": "これ は パソコン です"}
14 ]
15
16 select Memos \
17 --match_columns content \
18 --query "パリカン" \
19 --fuzzy_max_distance 2 \
20 --fuzzy_prefix_length 1 \
21 --output_columns *,_score