Debian Codegraph @

test/command/suite/select/query/asterisk/with_single_character.test

raw
1 table_create Diaries TABLE_NO_KEY
2 column_create Diaries content COLUMN_SCALAR ShortText
3
4 table_create Terms TABLE_PAT_KEY ShortText \
5 --default_tokenizer TokenBigram \
6 --normalizer NormalizerAuto
7 column_create Terms diaries_content COLUMN_INDEX|WITH_POSITION Diaries content
8
9 load --table Diaries
10 [
11 {"content": "It'll be fine tomorrow as well."},
12 {"content": "It'll rain tomorrow."},
13 {"content": "It's fine today. It'll be fine tomorrow as well."},
14 {"content": "It's fine today. But it'll rain tomorrow."},
15 {"content": "Ring the bell."},
16 {"content": "I love dumbbells."}
17 ]
18
19 select \
20 --table Diaries \
21 --match_columns content \
22 --query "t*" \
23 --output_columns content,_score \
24 --sortby _id