Debian Codegraph @

test/command/suite/sharding/logical_select/function/highlight_html.expected

raw
1 plugin_register sharding
2 [[0,0.0,0.0],true]
3 plugin_register functions/number
4 [[0,0.0,0.0],true]
5 table_create Memos_20170315 TABLE_NO_KEY
6 [[0,0.0,0.0],true]
7 column_create Memos_20170315 timestamp COLUMN_SCALAR Time
8 [[0,0.0,0.0],true]
9 column_create Memos_20170315 content COLUMN_SCALAR Text
10 [[0,0.0,0.0],true]
11 table_create Memos_20170316 TABLE_NO_KEY
12 [[0,0.0,0.0],true]
13 column_create Memos_20170316 timestamp COLUMN_SCALAR Time
14 [[0,0.0,0.0],true]
15 column_create Memos_20170316 content COLUMN_SCALAR Text
16 [[0,0.0,0.0],true]
17 table_create Memos_20170317 TABLE_NO_KEY
18 [[0,0.0,0.0],true]
19 column_create Memos_20170317 timestamp COLUMN_SCALAR Time
20 [[0,0.0,0.0],true]
21 column_create Memos_20170317 content COLUMN_SCALAR Text
22 [[0,0.0,0.0],true]
23 load --table Memos_20170315
24 [
25 {"timestamp": "2017/03/15 00:00:00", "content": "Groonga is fast."},
26 {"timestamp": "2017/03/15 01:00:00", "content": "Mroonga is fast and easy to use."}
27 ]
28 [[0,0.0,0.0],2]
29 load --table Memos_20170316
30 [
31 {"timestamp": "2017/03/16 10:00:00", "content": "PGroonga is fast and easy to use."},
32 {"timestamp": "2017/03/16 11:00:00", "content": "Rroonga is fast and easy to use."}
33 ]
34 [[0,0.0,0.0],2]
35 logical_select Memos --shard_key timestamp --query 'content:@easy' --output_columns 'content, highlight_html(content)'
36 [
37 [
38 0,
39 0.0,
40 0.0
41 ],
42 [
43 [
44 [
45 3
46 ],
47 [
48 [
49 "content",
50 "Text"
51 ],
52 [
53 "highlight_html",
54 null
55 ]
56 ],
57 [
58 "Mroonga is fast and easy to use.",
59 "Mroonga is fast and <span class=\"keyword\">easy</span> to use."
60 ],
61 [
62 "PGroonga is fast and easy to use.",
63 "PGroonga is fast and <span class=\"keyword\">easy</span> to use."
64 ],
65 [
66 "Rroonga is fast and easy to use.",
67 "Rroonga is fast and <span class=\"keyword\">easy</span> to use."
68 ]
69 ]
70 ]
71 ]