Debian Codegraph @

test/command/suite/select/function/highlight_html/lexicon/lazy_mixed.expected

raw
1 table_create Entries TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Entries body COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer 'TokenNgram("report_source_location", true)' --normalizer 'NormalizerNFKC150'
6 [[0,0.0,0.0],true]
7 column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body
8 [[0,0.0,0.0],true]
9 load --table Entries
10 [
11 {"body": "斉藤 一代さん"},
12 {"body": "斉藤の一人"}
13 ]
14 [[0,0.0,0.0],2]
15 select Entries --match_columns body --query '斉藤 一' --output_columns 'highlight_html(body, Terms)'
16 [
17 [
18 0,
19 0.0,
20 0.0
21 ],
22 [
23 [
24 [
25 2
26 ],
27 [
28 [
29 "highlight_html",
30 null
31 ]
32 ],
33 [
34 "<span class=\"keyword\">斉藤 一</span>代さん"
35 ],
36 [
37 "<span class=\"keyword\">斉藤</span>の<span class=\"keyword\">一</span>人"
38 ]
39 ]
40 ]
41 ]