Debian Codegraph @

test/command/suite/select/query/weight_vector.expected

raw
1 table_create Memos TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Memos tags COLUMN_VECTOR|WITH_WEIGHT ShortText
4 [[0,0.0,0.0],true]
5 load --table Memos
6 [
7 {
8 "_key": "Groonga is fast",
9 "tags": {
10 "groonga": 100
11 }
12 },
13 {
14 "_key": "Mroonga is also fast",
15 "tags": {
16 "mroonga": 100,
17 "groonga": 10
18 }
19 },
20 {
21 "_key": "Ruby is an object oriented script language",
22 "tags": {
23 "ruby": 100
24 }
25 }
26 ]
27 [[0,0.0,0.0],3]
28 table_create Tags TABLE_PAT_KEY ShortText
29 [[0,0.0,0.0],true]
30 column_create Tags memos_tags COLUMN_INDEX|WITH_WEIGHT Memos tags
31 [[0,0.0,0.0],true]
32 select Memos --match_columns tags --query groonga --output_columns _key,_score
33 [
34 [
35 0,
36 0.0,
37 0.0
38 ],
39 [
40 [
41 [
42 2
43 ],
44 [
45 [
46 "_key",
47 "ShortText"
48 ],
49 [
50 "_score",
51 "Int32"
52 ]
53 ],
54 [
55 "Groonga is fast",
56 101
57 ],
58 [
59 "Mroonga is also fast",
60 11
61 ]
62 ]
63 ]
64 ]