| 1 |
table_create \ |
| 2 |
--name NamesFullTextSearchIndex \ |
| 3 |
--flags TABLE_PAT_KEY \ |
| 4 |
--key_type ShortText \ |
| 5 |
--default_tokenizer TokenBigramSplitSymbolAlphaDigit \ |
| 6 |
--normalizer NormalizerAuto |
| 7 |
table_create \ |
| 8 |
--name NamesIndex \ |
| 9 |
--flags TABLE_PAT_KEY \ |
| 10 |
--key_type ShortText |
| 11 |
|
| 12 |
table_create \ |
| 13 |
--name Users \ |
| 14 |
--flags TABLE_HASH_KEY \ |
| 15 |
--key_type UInt32 |
| 16 |
column_create \ |
| 17 |
--table Users \ |
| 18 |
--name name \ |
| 19 |
--flags COLUMN_SCALAR \ |
| 20 |
--type ShortText |
| 21 |
|
| 22 |
load --table Users |
| 23 |
[ |
| 24 |
["_key", "name"], |
| 25 |
[1, "Alice"], |
| 26 |
[2, "Bob"] |
| 27 |
] |
| 28 |
|
| 29 |
column_create \ |
| 30 |
--table NamesFullTextSearchIndex \ |
| 31 |
--name index \ |
| 32 |
--flags COLUMN_INDEX|WITH_POSITION \ |
| 33 |
--type Users \ |
| 34 |
--source name |
| 35 |
column_create \ |
| 36 |
--table NamesIndex \ |
| 37 |
--name index \ |
| 38 |
--flags COLUMN_INDEX \ |
| 39 |
--type Users \ |
| 40 |
--source name |
| 41 |
|
| 42 |
log_level --level info |
| 43 |
#@add-important-log-levels info |
| 44 |
#@add-ignore-log-pattern /\A\[io\]/ |
| 45 |
select --table Users --query 'name:^"Ali"' |
| 46 |
#@remove-ignore-log-pattern /\A\[io\]/ |
| 47 |
#@remove-important-log-levels info |
| 48 |
log_level --level notice |