Debian Codegraph @

test/command/suite/select/function/highlight_html/similar_search.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 TokenBigram --normalizer NormalizerAuto
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 column_create Terms is_stop_word COLUMN_SCALAR Bool
10 [[0,0.0,0.0],true]
11 load --table Entries
12 [
13 {"body": "Mroonga is a MySQL storage engine based on Groonga. <b>Rroonga</b> is a Ruby binding of Groonga."},
14 {"body": "It is a pen."},
15 {"body": "I am a boy."},
16 {"body": "This is good."}
17 ]
18 [[0,0.0,0.0],4]
19 select Entries --filter 'body *S "Groonga is fast full text search engine. There are SQL interfaces by Mroonga and PGroonga and Ruby interface by Rroonga."' --output_columns 'highlight_html(body)'
20 [
21 [
22 0,
23 0.0,
24 0.0
25 ],
26 [
27 [
28 [
29 1
30 ],
31 [
32 [
33 "highlight_html",
34 null
35 ]
36 ],
37 [
38 "<span class=\"keyword\">Mroonga</span> is a MySQL storage <span class=\"keyword\">engine</span> based on Groonga. &lt;b&gt;<span class=\"keyword\">Rroonga</span>&lt;/b&gt; is a <span class=\"keyword\">Ruby</span> binding of Groonga."
39 ]
40 ]
41 ]
42 ]