| 1 |
table_create Users TABLE_HASH_KEY ShortText |
| 2 |
column_create Users age COLUMN_SCALAR UInt32 |
| 3 |
column_create Users description COLUMN_SCALAR ShortText |
| 4 |
|
| 5 |
table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigramSplitSymbolAlphaDigit |
| 6 |
column_create Terms description_index COLUMN_INDEX|WITH_POSITION Users description |
| 7 |
|
| 8 |
load --table Users |
| 9 |
[ |
| 10 |
{"_key": "alice", "age": 18, "description": "brother's age:20"}, |
| 11 |
{"_key": "bob", "age": 20, "description": "sister's age:18"} |
| 12 |
] |
| 13 |
|
| 14 |
select Users \ |
| 15 |
--match_columns "description" \ |
| 16 |
--query "age:18" \ |
| 17 |
--query_flags "NONE" |