| 1 |
table_create Users TABLE_HASH_KEY ShortText --default_tokenizer TokenDelimit |
| 2 |
column_create Users hobby COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
table_create Files TABLE_PAT_KEY ShortText |
| 5 |
column_create Files owners COLUMN_VECTOR Users |
| 6 |
|
| 7 |
column_create Users files_owners COLUMN_INDEX Files owners |
| 8 |
|
| 9 |
table_create Hobbies TABLE_HASH_KEY ShortText |
| 10 |
column_create Hobbies users_hobby COLUMN_INDEX Users hobby |
| 11 |
|
| 12 |
load --table Users |
| 13 |
[ |
| 14 |
{"_key": "alice", "hobby": "programming"}, |
| 15 |
{"_key": "bob", "hobby": "programming"}, |
| 16 |
{"_key": "carlos", "hobby": "running"} |
| 17 |
] |
| 18 |
|
| 19 |
load --table Files |
| 20 |
[ |
| 21 |
{"_key": "/home/alice/.zshrc", "owners": "alice bob"}, |
| 22 |
{"_key": "/home/bob/.bashrc", "owners": "bob"}, |
| 23 |
{"_key": "/home/calros/public_html/index.html", "owners": "carlos"} |
| 24 |
] |
| 25 |
|
| 26 |
log_level --level info |
| 27 |
#@add-important-log-levels info |
| 28 |
#@add-ignore-log-pattern /\A\[io\]/ |
| 29 |
select Files \ |
| 30 |
--filter 'owners.hobby @ "programming"' \ |
| 31 |
--output_columns '_key, owners, owners.hobby, _score' |
| 32 |
#@remove-ignore-log-pattern /\A\[io\]/ |
| 33 |
#@remove-important-log-levels info |
| 34 |
log_level --level notice |