Debian Codegraph @

test/command/suite/select/function/highlight_html/lexicon/match_in_normal.test

raw
1 table_create Entries TABLE_NO_KEY
2 column_create Entries body COLUMN_SCALAR ShortText
3
4 table_create Terms TABLE_PAT_KEY ShortText \
5 --default_tokenizer 'TokenNgram("loose_symbol", true, "loose_blank", true, "report_source_location", true)' \
6 --normalizer 'NormalizerNFKC100("unify_hyphen_and_prolonged_sound_mark", true)'
7 column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body
8
9 load --table Entries
10 [
11 {"body": "Loose: telephone <090ー1234(5678)> number"}
12 ]
13
14 select Entries \
15 --match_columns body \
16 --query '5678' \
17 --output_columns 'highlight_html(body, Terms)'