Debian Codegraph @

test/command/suite/select/function/snippet_html/none/empty_array.expected

raw
1 table_create Documents TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Documents content COLUMN_SCALAR Text
4 [[0,0.0,0.0],true]
5 table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
6 [[0,0.0,0.0],true]
7 column_create Terms document_index COLUMN_INDEX|WITH_POSITION Documents content
8 [[0,0.0,0.0],true]
9 load --table Documents
10 [
11 ["_key", "content"],
12 ["Groonga", "Groonga can be used with MySQL."]
13 ]
14 [[0,0.0,0.0],1]
15 select Documents --match_columns content --query 'MySQL' --output_columns '_key, snippet_html(_key, {"default": []})'
16 [
17 [
18 0,
19 0.0,
20 0.0
21 ],
22 [
23 [
24 [
25 1
26 ],
27 [
28 [
29 "_key",
30 "ShortText"
31 ],
32 [
33 "snippet_html",
34 null
35 ]
36 ],
37 [
38 "Groonga",
39 []
40 ]
41 ]
42 ]
43 ]