Debian Codegraph @

test/command/suite/select/function/highlight_html/twice_hits.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 --default_tokenizer TokenBigram --normalizer NormalizerAuto
5 column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body
6
7 load --table Entries
8 [
9 {"body": "Mroonga is a MySQL storage engine based on Groonga. <b>Rroonga</b> is a Ruby binding of Groonga."}
10 ]
11
12 select Entries \
13 --match_columns body --query 'Groonga' \
14 --output_columns 'highlight_html(body)'