1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#$GRN_II_OVERLAP_TOKEN_SKIP_ENABLE=yes
table_create Entries TABLE_NO_KEY
column_create Entries body COLUMN_SCALAR ShortText
table_create Terms TABLE_PAT_KEY ShortText \
--default_tokenizer TokenBigram \
--normalizer NormalizerAuto
load --table Entries
[
{"body": "HongKong"}
]
column_create Terms index COLUMN_INDEX|WITH_POSITION Entries body
table_tokenize Terms "HongKong" --index_column index
log_level --level debug
#@add-important-log-levels debug
#@add-ignore-log-pattern /\A\[io\]/
select Entries --filter 'body @ "HongKong"'
#@remove-ignore-log-pattern /\A\[io\]/
#@remove-important-log-levels debug
log_level --level notice
|