| 1 |
table_create Logs TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Logs message COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Terms logs_message COLUMN_INDEX|WITH_POSITION Logs message |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Logs |
| 10 |
[ |
| 11 |
{"message": "Hello"}, |
| 12 |
{"message": "World"} |
| 13 |
] |
| 14 |
[[0,0.0,0.0],2] |
| 15 |
select Terms |
| 16 |
[ |
| 17 |
[ |
| 18 |
0, |
| 19 |
0.0, |
| 20 |
0.0 |
| 21 |
], |
| 22 |
[ |
| 23 |
[ |
| 24 |
[ |
| 25 |
2 |
| 26 |
], |
| 27 |
[ |
| 28 |
[ |
| 29 |
"_id", |
| 30 |
"UInt32" |
| 31 |
], |
| 32 |
[ |
| 33 |
"_key", |
| 34 |
"ShortText" |
| 35 |
], |
| 36 |
[ |
| 37 |
"logs_message", |
| 38 |
"UInt32" |
| 39 |
] |
| 40 |
], |
| 41 |
[ |
| 42 |
1, |
| 43 |
"hello", |
| 44 |
1 |
| 45 |
], |
| 46 |
[ |
| 47 |
2, |
| 48 |
"world", |
| 49 |
1 |
| 50 |
] |
| 51 |
] |
| 52 |
] |
| 53 |
] |
| 54 |
truncate Terms.logs_message |
| 55 |
[[0,0.0,0.0],true] |
| 56 |
select Terms |
| 57 |
[ |
| 58 |
[ |
| 59 |
0, |
| 60 |
0.0, |
| 61 |
0.0 |
| 62 |
], |
| 63 |
[ |
| 64 |
[ |
| 65 |
[ |
| 66 |
2 |
| 67 |
], |
| 68 |
[ |
| 69 |
[ |
| 70 |
"_id", |
| 71 |
"UInt32" |
| 72 |
], |
| 73 |
[ |
| 74 |
"_key", |
| 75 |
"ShortText" |
| 76 |
], |
| 77 |
[ |
| 78 |
"logs_message", |
| 79 |
"UInt32" |
| 80 |
] |
| 81 |
], |
| 82 |
[ |
| 83 |
1, |
| 84 |
"hello", |
| 85 |
0 |
| 86 |
], |
| 87 |
[ |
| 88 |
2, |
| 89 |
"world", |
| 90 |
0 |
| 91 |
] |
| 92 |
] |
| 93 |
] |
| 94 |
] |
| 95 |
dump |
| 96 |
table_create Logs TABLE_NO_KEY |
| 97 |
column_create Logs message COLUMN_SCALAR ShortText |
| 98 |
|
| 99 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 100 |
|
| 101 |
load --table Logs |
| 102 |
[ |
| 103 |
["_id","message"], |
| 104 |
[1,"Hello"], |
| 105 |
[2,"World"] |
| 106 |
] |
| 107 |
|
| 108 |
column_create Terms logs_message COLUMN_INDEX|WITH_POSITION Logs message |