Debian Codegraph @

test/command/suite/select/query/less/with_match.test

raw
1 table_create Memos TABLE_NO_KEY
2 column_create Memos content COLUMN_SCALAR ShortText
3 column_create Memos created_at COLUMN_SCALAR Time
4
5 table_create Terms TABLE_HASH_KEY ShortText \
6 --default_tokenizer TokenBigram \
7 --normalizer NormalizerAuto
8 column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content
9
10 table_create Times TABLE_PAT_KEY Time
11 column_create Times memos_created_at COLUMN_INDEX Memos created_at
12
13 load --table Memos
14 [
15 {"content": "Today is a good day.", "created_at": "2017-01-16 12:00:00"},
16 {"content": "Tomorrow will be a good day.", "created_at": "2017-01-17 12:00:00"}
17 ]
18
19 select Memos \
20 --match_columns 'content' \
21 --query 'tomorrow created_at:<"2017-01-17 13:00:00" day'