Debian Codegraph @

test/command/suite/select/function/snippet_html/first.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), 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 "title",
37 "ShortText"
38 ],
39 [
40 "content",
41 "ShortText"
42 ]
43 ],
44 [
45 [
46 "<span class=\"keyword\">groonga</span> and MySQL"
47 ],
48 "groonga and MySQL",
49 "groonga + MySQL = mroonga."
50 ]
51 ]
52 ]
53 ]