Debian Codegraph @

test/command/suite/load/vector/cast/string/reference/with_weight.expected

raw
1 table_create Tags TABLE_PAT_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Data TABLE_NO_KEY
4 [[0,0.0,0.0],true]
5 column_create Data tags COLUMN_VECTOR|WITH_WEIGHT Tags
6 [[0,0.0,0.0],true]
7 column_create Tags data_tags COLUMN_INDEX|WITH_WEIGHT Data tags
8 [[0,0.0,0.0],true]
9 load --table Data
10 [
11 {"tags": "{\"fruit\": 10, \"apple\": 100}"},
12 {"tags": "{\"fruit\": 200}"}
13 ]
14 [[0,0.0,0.0],2]
15 dump --dump_plugins no --dump_schema no
16 load --table Data
17 [
18 ["_id","tags"],
19 [1,{"fruit":10,"apple":100}],
20 [2,{"fruit":200}]
21 ]
22
23 column_create Tags data_tags COLUMN_INDEX|WITH_WEIGHT Data tags
24 select Data --filter 'tags @ "fruit"' --output_columns "tags,_score"
25 [
26 [
27 0,
28 0.0,
29 0.0
30 ],
31 [
32 [
33 [
34 2
35 ],
36 [
37 [
38 "tags",
39 "Tags"
40 ],
41 [
42 "_score",
43 "Int32"
44 ]
45 ],
46 [
47 {
48 "fruit": 10,
49 "apple": 100
50 },
51 11
52 ],
53 [
54 {
55 "fruit": 200
56 },
57 201
58 ]
59 ]
60 ]
61 ]