| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Memos content COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Memos created_at COLUMN_SCALAR Time |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
table_create Terms TABLE_HASH_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
table_create Times TABLE_PAT_KEY Time |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
column_create Times memos_created_at COLUMN_INDEX Memos created_at |
| 14 |
[[0,0.0,0.0],true] |
| 15 |
load --table Memos |
| 16 |
[ |
| 17 |
{"content": "Today is a good day.", "created_at": "2017-01-16 12:00:00"}, |
| 18 |
{"content": "Tomorrow will be a good day.", "created_at": "2017-01-17 12:00:00"} |
| 19 |
] |
| 20 |
[[0,0.0,0.0],2] |
| 21 |
select Memos --match_columns 'content' --query 'tomorrow created_at:<"2017-01-17 13:00:00" day' |
| 22 |
[ |
| 23 |
[ |
| 24 |
0, |
| 25 |
0.0, |
| 26 |
0.0 |
| 27 |
], |
| 28 |
[ |
| 29 |
[ |
| 30 |
[ |
| 31 |
1 |
| 32 |
], |
| 33 |
[ |
| 34 |
[ |
| 35 |
"_id", |
| 36 |
"UInt32" |
| 37 |
], |
| 38 |
[ |
| 39 |
"content", |
| 40 |
"ShortText" |
| 41 |
], |
| 42 |
[ |
| 43 |
"created_at", |
| 44 |
"Time" |
| 45 |
] |
| 46 |
], |
| 47 |
[ |
| 48 |
2, |
| 49 |
"Tomorrow will be a good day.", |
| 50 |
1484622000.0 |
| 51 |
] |
| 52 |
] |
| 53 |
] |
| 54 |
] |