| 1 |
table_create Paths TABLE_PAT_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Logs TABLE_NO_KEY |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Logs message COLUMN_SCALAR ShortText |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Logs path COLUMN_SCALAR Paths |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Paths logs_index COLUMN_INDEX Logs path |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
column_create Terms path_index COLUMN_INDEX|WITH_POSITION Paths _key |
| 14 |
[[0,0.0,0.0],true] |
| 15 |
load --table Logs |
| 16 |
[ |
| 17 |
{"message": "access", "path": "/home/alice/.zshrc"}, |
| 18 |
{"message": "write", "path": "/home/bob/.bashrc"}, |
| 19 |
{"message": "read", "path": "/home/calros/public_html/index.html"} |
| 20 |
] |
| 21 |
[[0,0.0,0.0],3] |
| 22 |
select Logs --filter 'path._key @ "alice"' --output_columns '_key, path' |
| 23 |
[[0,0.0,0.0],[[[1],[["path","Paths"]],["/home/alice/.zshrc"]]]] |