Debian Codegraph @

test/command/suite/index_column_diff/text_vector.expected

raw
1 table_create Data TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Data values COLUMN_VECTOR Text
4 [[0,0.0,0.0],true]
5 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC100
6 [[0,0.0,0.0],true]
7 column_create Terms data_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION Data values
8 [[0,0.0,0.0],true]
9 load --table Data
10 [
11 {"values": ["Hello World", "Good-by World"]},
12 {"values": ["Hello Groonga", "Good-by Groonga"]}
13 ]
14 [[0,0.0,0.0],2]
15 truncate Terms.data_index
16 [[0,0.0,0.0],true]
17 load --table Data
18 [
19 {"values": ["Morning World", "Afternoon World"]},
20 {"values": ["Morning Groonga", "Afternoon World"]}
21 ]
22 [[0,0.0,0.0],2]
23 index_column_diff Terms data_index
24 [
25 [
26 0,
27 0.0,
28 0.0
29 ],
30 [
31 {
32 "token": {
33 "id": 1,
34 "value": "hello"
35 },
36 "remains": [],
37 "missings": [
38 {
39 "record_id": 1,
40 "section_id": 1,
41 "position": 0
42 },
43 {
44 "record_id": 2,
45 "section_id": 1,
46 "position": 0
47 }
48 ]
49 },
50 {
51 "token": {
52 "id": 2,
53 "value": "world"
54 },
55 "remains": [],
56 "missings": [
57 {
58 "record_id": 1,
59 "section_id": 1,
60 "position": 1
61 },
62 {
63 "record_id": 1,
64 "section_id": 2,
65 "position": 3
66 }
67 ]
68 },
69 {
70 "token": {
71 "id": 3,
72 "value": "good"
73 },
74 "remains": [],
75 "missings": [
76 {
77 "record_id": 1,
78 "section_id": 2,
79 "position": 0
80 },
81 {
82 "record_id": 2,
83 "section_id": 2,
84 "position": 0
85 }
86 ]
87 },
88 {
89 "token": {
90 "id": 4,
91 "value": "-"
92 },
93 "remains": [],
94 "missings": [
95 {
96 "record_id": 1,
97 "section_id": 2,
98 "position": 1
99 },
100 {
101 "record_id": 2,
102 "section_id": 2,
103 "position": 1
104 }
105 ]
106 },
107 {
108 "token": {
109 "id": 5,
110 "value": "by"
111 },
112 "remains": [],
113 "missings": [
114 {
115 "record_id": 1,
116 "section_id": 2,
117 "position": 2
118 },
119 {
120 "record_id": 2,
121 "section_id": 2,
122 "position": 2
123 }
124 ]
125 },
126 {
127 "token": {
128 "id": 6,
129 "value": "groonga"
130 },
131 "remains": [],
132 "missings": [
133 {
134 "record_id": 2,
135 "section_id": 1,
136 "position": 1
137 },
138 {
139 "record_id": 2,
140 "section_id": 2,
141 "position": 3
142 }
143 ]
144 }
145 ]
146 ]