Debian Codegraph @

test/command/suite/select/query/logical_operator/or_and.test

raw
1 table_create Memos TABLE_NO_KEY
2 column_create Memos content COLUMN_SCALAR ShortText
3
4 table_create Terms TABLE_HASH_KEY ShortText \
5 --default_tokenizer TokenBigram \
6 --normalizer NormalizerAuto
7 column_create Terms index COLUMN_INDEX|WITH_POSITION Memos content
8
9 load --table Memos
10 [
11 {"content": "Today is a good day."},
12 {"content": "Tomorrow will be a good day."}
13 ]
14
15 select Memos \
16 --match_columns 'content' \
17 --query '(today OR tomorrow) day'