| 1 |
table_create Entries TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Entries body 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 |
load --table Entries |
| 8 |
[ |
| 9 |
{"body": "HongKong"} |
| 10 |
] |
| 11 |
[[0,0.0,0.0],1] |
| 12 |
column_create Terms index COLUMN_INDEX|WITH_POSITION Entries body |
| 13 |
[[0,0.0,0.0],true] |
| 14 |
table_tokenize Terms "HongKong" --index_column index |
| 15 |
[ |
| 16 |
[ |
| 17 |
0, |
| 18 |
0.0, |
| 19 |
0.0 |
| 20 |
], |
| 21 |
[ |
| 22 |
{ |
| 23 |
"value": "hongkong", |
| 24 |
"position": 0, |
| 25 |
"force_prefix": false, |
| 26 |
"force_prefix_search": false, |
| 27 |
"estimated_size": 1 |
| 28 |
} |
| 29 |
] |
| 30 |
] |
| 31 |
log_level --level debug |
| 32 |
[[0,0.0,0.0],true] |
| 33 |
select Entries --filter 'body @ "HongKong"' |
| 34 |
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["body","ShortText"]],[1,"HongKong"]]]] |
| 35 |
#|d| [ii][overlap_token_skip] tid=1 pos=0 estimated_size=1 |
| 36 |
log_level --level notice |
| 37 |
[[0,0.0,0.0],true] |