Debian Codegraph @

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

raw
1 table_create Entries TABLE_NO_KEY
2 column_create Entries title COLUMN_SCALAR ShortText
3 column_create Entries body COLUMN_SCALAR ShortText
4
5 table_create Terms TABLE_HASH_KEY ShortText \
6 --default_tokenizer 'TokenNgram("report_source_location", true)' \
7 --normalizer 'NormalizerNFKC100'
8 column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body
9
10 load --table Entries
11 [
12 {"title": "タイトル", "body": "あ"}
13 ]
14
15 select Entries \
16 --match_columns body \
17 --query 'あ' \
18 --output_columns 'highlight_html(title, Terms), \
19 highlight_html(body, Terms)'