Debian Codegraph @

test/command/suite/select/fuzzy/output_trace_log/apache_arrow.test

raw
1 #@require-apache-arrow
2 #@require-interface http
3 #@require-testee groonga
4
5 table_create Memos TABLE_NO_KEY
6 column_create Memos content COLUMN_SCALAR ShortText
7
8 table_create Lexicon TABLE_PAT_KEY ShortText \
9 --default_tokenizer TokenNgram \
10 --normalizer NormalizerNFKC150
11 column_create Lexicon memos_content \
12 COLUMN_INDEX|WITH_POSITION Memos content
13
14 load --table Memos
15 [
16 {"content": "This is a pen"},
17 {"content": "That is a pen"},
18 {"content": "They are pens"}
19 ]
20
21 select Memos \
22 --match_columns content \
23 --query "Thas OR ere" \
24 --fuzzy_max_distance 1 \
25 --output_columns *,_score \
26 --command_version 3 \
27 --output_trace_log yes \
28 --output_type apache-arrow