Debian Codegraph @

test/command/suite/select/match_columns/weight/nested_weight_vector.expected

raw
1 table_create Tags TABLE_PAT_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Products TABLE_HASH_KEY ShortText
4 [[0,0.0,0.0],true]
5 column_create Products tags COLUMN_VECTOR|WITH_WEIGHT Tags
6 [[0,0.0,0.0],true]
7 table_create Programmers TABLE_PAT_KEY ShortText
8 [[0,0.0,0.0],true]
9 column_create Programmers products COLUMN_VECTOR Products
10 [[0,0.0,0.0],true]
11 load --table Products
12 [
13 {
14 "_key": "Groonga",
15 "tags": {
16 "groonga": 100
17 }
18 },
19 {
20 "_key": "Mroonga",
21 "tags": {
22 "mroonga": 100,
23 "groonga": 50
24 }
25 },
26 {
27 "_key": "Rroonga",
28 "tags": {
29 "ruby": 100,
30 "groonga": 10
31 }
32 },
33 {
34 "_key": "TST",
35 "tags": {
36 "mozilla": 100
37 }
38 }
39 ]
40 [[0,0.0,0.0],4]
41 load --table Programmers
42 [
43 {
44 "_key": "daijiro",
45 "products": [
46 "Groonga",
47 "Mroonga"
48 ]
49 },
50 {
51 "_key": "kou",
52 "products": [
53 "Groonga",
54 "Mroonga",
55 "Rroonga"
56 ]
57 },
58 {
59 "_key": "maruyama",
60 "products": [
61 "Mroonga"
62 ]
63 },
64 {
65 "_key": "piro",
66 "products": [
67 "TST"
68 ]
69 }
70 ]
71 [[0,0.0,0.0],4]
72 column_create Tags products_tags COLUMN_INDEX|WITH_WEIGHT Products tags
73 [[0,0.0,0.0],true]
74 column_create Products programmers_products COLUMN_INDEX Programmers products
75 [[0,0.0,0.0],true]
76 select Programmers --match_columns 'products.tags * 10' --query groonga --output_columns _key,_score
77 [
78 [
79 0,
80 0.0,
81 0.0
82 ],
83 [
84 [
85 [
86 3
87 ],
88 [
89 [
90 "_key",
91 "ShortText"
92 ],
93 [
94 "_score",
95 "Int32"
96 ]
97 ],
98 [
99 "daijiro",
100 1520
101 ],
102 [
103 "kou",
104 1630
105 ],
106 [
107 "maruyama",
108 510
109 ]
110 ]
111 ]
112 ]