| 1 |
#@on-error omit |
| 2 |
plugin_register sharding |
| 3 |
#@on-error default |
| 4 |
|
| 5 |
table_create Paths_20150203 TABLE_HASH_KEY|KEY_LARGE ShortText |
| 6 |
table_create Logs_20150203 TABLE_NO_KEY |
| 7 |
column_create Logs_20150203 timestamp COLUMN_SCALAR Time |
| 8 |
column_create Logs_20150203 path COLUMN_SCALAR Paths_20150203 |
| 9 |
column_create Logs_20150203 links COLUMN_VECTOR Paths_20150203 |
| 10 |
table_create Times_20150203 TABLE_PAT_KEY Time |
| 11 |
column_create Times_20150203 timestamp_index COLUMN_INDEX Logs_20150203 timestamp |
| 12 |
|
| 13 |
table_create PathTerms_20150203 TABLE_PAT_KEY ShortText \ |
| 14 |
--default_tokenizer TokenBigram \ |
| 15 |
--normalizer NormalizerAuto |
| 16 |
column_create PathTerms_20150203 index COLUMN_INDEX|WITH_POSITION \ |
| 17 |
Paths_20150203 _key |
| 18 |
|
| 19 |
|
| 20 |
table_create NotRelated_20150204 TABLE_NO_KEY |
| 21 |
|
| 22 |
table_create Paths_20150204 TABLE_HASH_KEY|KEY_LARGE ShortText |
| 23 |
table_create Logs_20150204 TABLE_NO_KEY |
| 24 |
column_create Logs_20150204 timestamp COLUMN_SCALAR Time |
| 25 |
column_create Logs_20150204 path COLUMN_SCALAR Paths_20150204 |
| 26 |
column_create Logs_20150204 links COLUMN_VECTOR Paths_20150204 |
| 27 |
table_create Times_20150204 TABLE_PAT_KEY Time |
| 28 |
column_create Times_20150204 timestamp_index COLUMN_INDEX Logs_20150204 timestamp |
| 29 |
|
| 30 |
table_create PathTerms_20150204 TABLE_PAT_KEY ShortText \ |
| 31 |
--default_tokenizer TokenBigram \ |
| 32 |
--normalizer NormalizerAuto |
| 33 |
column_create PathTerms_20150204 index COLUMN_INDEX|WITH_POSITION \ |
| 34 |
Paths_20150204 _key |
| 35 |
|
| 36 |
|
| 37 |
load --table Logs_20150203 |
| 38 |
[ |
| 39 |
{"timestamp": "2015-02-03 12:49:00", "path": "/tmp/log", "links": []}, |
| 40 |
{"timestamp": "2015-02-03 23:59:59", "path": "/var/", "links": []} |
| 41 |
] |
| 42 |
|
| 43 |
load --table Logs_20150204 |
| 44 |
[ |
| 45 |
{"timestamp": "2015-02-04 00:00:00", "path": "/tmp/log", "links": []}, |
| 46 |
{"timestamp": "2015-02-04 13:49:00", "path": "/root/", "links": []}, |
| 47 |
{"timestamp": "2015-02-04 13:50:00", "path": "/etc/aliases", "links": []} |
| 48 |
] |
| 49 |
|
| 50 |
logical_table_remove Logs timestamp \ |
| 51 |
--min "2015-02-04 00:00:00" \ |
| 52 |
--min_border "include" \ |
| 53 |
--dependent yes |
| 54 |
|
| 55 |
dump |