Debian Codegraph @

test/command/suite/select/function/snippet_html/twice.expected

raw
1 table_create Entries TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Entries title COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 column_create Entries content COLUMN_SCALAR ShortText
6 [[0,0.0,0.0],true]
7 table_create Tokens TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
8 [[0,0.0,0.0],true]
9 column_create Tokens entries_title COLUMN_INDEX|WITH_POSITION Entries title
10 [[0,0.0,0.0],true]
11 column_create Tokens entries_content COLUMN_INDEX|WITH_POSITION Entries content
12 [[0,0.0,0.0],true]
13 load --table Entries
14 [
15 {"title": "groonga and MySQL", "content": "groonga + MySQL = mroonga."}
16 ]
17 [[0,0.0,0.0],1]
18 select Entries --output_columns 'snippet_html(title), snippet_html(content), title, content' --match_columns 'title' --query groonga
19 [
20 [
21 0,
22 0.0,
23 0.0
24 ],
25 [
26 [
27 [
28 1
29 ],
30 [
31 [
32 "snippet_html",
33 null
34 ],
35 [
36 "snippet_html",
37 null
38 ],
39 [
40 "title",
41 "ShortText"
42 ],
43 [
44 "content",
45 "ShortText"
46 ]
47 ],
48 [
49 [
50 "<span class=\"keyword\">groonga</span> and MySQL"
51 ],
52 [
53 "<span class=\"keyword\">groonga</span> + MySQL = mroonga."
54 ],
55 "groonga and MySQL",
56 "groonga + MySQL = mroonga."
57 ]
58 ]
59 ]
60 ]