Debian Codegraph @

test/command/suite/index_column_diff/remains/with_section.expected

raw
1 table_create Data TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Data value1 COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 column_create Data value2 COLUMN_SCALAR ShortText
6 [[0,0.0,0.0],true]
7 table_create Patterns TABLE_PAT_KEY ShortText --normalizer NormalizerNFKC100
8 [[0,0.0,0.0],true]
9 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer "TokenTable('table', 'Patterns')" --normalizer NormalizerNFKC100
10 [[0,0.0,0.0],true]
11 column_create Terms data_values_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION Data value1,value2
12 [[0,0.0,0.0],true]
13 load --table Patterns
14 [
15 {"_key": "World"},
16 {"_key": "Groonga"}
17 ]
18 [[0,0.0,0.0],2]
19 load --table Data
20 [
21 {"value1": "Hello World",
22 "value2": "Good-by World"},
23 {"value1": "Hello Groonga",
24 "value2": "Good-by Groonga"}
25 ]
26 [[0,0.0,0.0],2]
27 truncate Patterns
28 [[0,0.0,0.0],true]
29 load --table Data
30 [
31 {"_id": 1,
32 "value1": "Hello Groonga",
33 "value2": "Good-by Groonga"},
34 {"_id": 2,
35 "value1": "Hello World",
36 "value2": "Good-by World"}
37 ]
38 [[0,0.0,0.0],2]
39 load --table Patterns
40 [
41 {"_key": "World"},
42 {"_key": "Groonga"}
43 ]
44 [[0,0.0,0.0],2]
45 index_column_diff Terms data_values_index
46 [
47 [
48 0,
49 0.0,
50 0.0
51 ],
52 [
53 {
54 "token": {
55 "id": 2,
56 "value": "groonga"
57 },
58 "remains": [
59 {
60 "record_id": 2,
61 "section_id": 1,
62 "position": 0
63 },
64 {
65 "record_id": 2,
66 "section_id": 2,
67 "position": 0
68 }
69 ],
70 "missings": [
71 {
72 "record_id": 1,
73 "section_id": 1,
74 "position": 0
75 },
76 {
77 "record_id": 1,
78 "section_id": 2,
79 "position": 0
80 }
81 ]
82 },
83 {
84 "token": {
85 "id": 1,
86 "value": "world"
87 },
88 "remains": [
89 {
90 "record_id": 1,
91 "section_id": 1,
92 "position": 0
93 },
94 {
95 "record_id": 1,
96 "section_id": 2,
97 "position": 0
98 }
99 ],
100 "missings": [
101 {
102 "record_id": 2,
103 "section_id": 1,
104 "position": 0
105 },
106 {
107 "record_id": 2,
108 "section_id": 2,
109 "position": 0
110 }
111 ]
112 }
113 ]
114 ]