Debian Codegraph @

test/command/suite/select/function/highlight_html/regexp.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 TokenRegexp --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 --filter "body @~ '(?-mix:ro.*ga)'" \
14 --output_columns "highlight_html(body)"