Debian Codegraph @

test/command/suite/select/index/nested/by_column/vector.expected

raw
1 table_create Comments TABLE_HASH_KEY UInt32
2 [[0,0.0,0.0],true]
3 column_create Comments content COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 table_create Articles TABLE_NO_KEY
6 [[0,0.0,0.0],true]
7 column_create Articles content COLUMN_SCALAR Text
8 [[0,0.0,0.0],true]
9 column_create Articles comments COLUMN_VECTOR Comments
10 [[0,0.0,0.0],true]
11 table_create Lexicon TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
12 [[0,0.0,0.0],true]
13 column_create Lexicon articles_content COLUMN_INDEX|WITH_POSITION Articles content
14 [[0,0.0,0.0],true]
15 column_create Lexicon comments_content COLUMN_INDEX|WITH_POSITION Comments content
16 [[0,0.0,0.0],true]
17 column_create Comments article COLUMN_INDEX Articles comments
18 [[0,0.0,0.0],true]
19 load --table Comments
20 [
21 {"_key": 1, "content": "I'm using groonga too!"},
22 {"_key": 2, "content": "I'm using groonga and mroonga!"},
23 {"_key": 3, "content": "I'm using mroonga too!"}
24 ]
25 [[0,0.0,0.0],3]
26 load --table Articles
27 [
28 {"content": "Groonga is fast!", "comments": [1, 3]},
29 {"content": "Groonga is useful!"},
30 {"content": "Mroonga is fast!", "comments": [2]}
31 ]
32 [[0,0.0,0.0],3]
33 select Articles --match_columns comments.content --query groonga --output_columns "_id, _score, *"
34 [
35 [
36 0,
37 0.0,
38 0.0
39 ],
40 [
41 [
42 [
43 2
44 ],
45 [
46 [
47 "_id",
48 "UInt32"
49 ],
50 [
51 "_score",
52 "Int32"
53 ],
54 [
55 "comments",
56 "Comments"
57 ],
58 [
59 "content",
60 "Text"
61 ]
62 ],
63 [
64 1,
65 1,
66 [
67 1,
68 3
69 ],
70 "Groonga is fast!"
71 ],
72 [
73 3,
74 1,
75 [
76 2
77 ],
78 "Mroonga is fast!"
79 ]
80 ]
81 ]
82 ]