Debian Codegraph @

test/command/suite/select/cache/output_trace_log.expected

raw
1 table_create Memos TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Memos content COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC150
6 [[0,0.0,0.0],true]
7 column_create Lexicon memos_content COLUMN_INDEX|WITH_POSITION Memos content
8 [[0,0.0,0.0],true]
9 load --table Memos
10 [
11 {"content": "This is a pen"},
12 {"content": "That is a pen"},
13 {"content": "They are pens"}
14 ]
15 [[0,0.0,0.0],3]
16 select Memos --match_columns content --query "Thas OR ere" --fuzzy_max_distance 1 --output_columns *,_score --command_version 3
17 {
18 "header": {
19 "return_code": 0,
20 "start_time": 0.0,
21 "elapsed_time": 0.0
22 },
23 "body": {
24 "n_hits": 2,
25 "columns": [
26 {
27 "name": "content",
28 "type": "ShortText"
29 },
30 {
31 "name": "_score",
32 "type": "Float"
33 }
34 ],
35 "records": [
36 [
37 "This is a pen",
38 1.0
39 ],
40 [
41 "That is a pen",
42 1.0
43 ]
44 ]
45 }
46 }
47 select Memos --match_columns content --query "Thas OR ere" --fuzzy_max_distance 1 --output_columns *,_score --command_version 3 --output_trace_log yes
48 {
49 "header": {
50 "return_code": 0,
51 "start_time": 0.0,
52 "elapsed_time": 0.0
53 },
54 "trace_log": {
55 "columns": [
56 {
57 "name": "depth"
58 },
59 {
60 "name": "sequence"
61 },
62 {
63 "name": "name"
64 },
65 {
66 "name": "value"
67 },
68 {
69 "name": "elapsed_time"
70 }
71 ],
72 "logs": [
73 [
74 1,
75 0,
76 "ii.select.input",
77 "Thas",
78 0
79 ],
80 [
81 1,
82 1,
83 "ii.select.operator",
84 "or",
85 1
86 ],
87 [
88 2,
89 0,
90 "ii.select.exact.n_hits",
91 0,
92 2
93 ],
94 [
95 2,
96 0,
97 "ii.select.fuzzy.input",
98 "Thas",
99 3
100 ],
101 [
102 2,
103 1,
104 "ii.select.fuzzy.input.actual",
105 "that",
106 4
107 ],
108 [
109 2,
110 2,
111 "ii.select.fuzzy.input.actual",
112 "this",
113 5
114 ],
115 [
116 2,
117 3,
118 "ii.select.fuzzy.n_hits",
119 2,
120 6
121 ],
122 [
123 1,
124 2,
125 "ii.select.n_hits",
126 2,
127 7
128 ],
129 [
130 1,
131 0,
132 "ii.select.input",
133 "ere",
134 8
135 ],
136 [
137 1,
138 1,
139 "ii.select.operator",
140 "or",
141 9
142 ],
143 [
144 2,
145 0,
146 "ii.select.exact.n_hits",
147 2,
148 10
149 ],
150 [
151 1,
152 2,
153 "ii.select.n_hits",
154 2,
155 11
156 ]
157 ]
158 },
159 "body": {
160 "n_hits": 2,
161 "columns": [
162 {
163 "name": "content",
164 "type": "ShortText"
165 },
166 {
167 "name": "_score",
168 "type": "Float"
169 }
170 ],
171 "records": [
172 [
173 "This is a pen",
174 1.0
175 ],
176 [
177 "That is a pen",
178 1.0
179 ]
180 ]
181 }
182 }
183 select Memos --match_columns content --query "Thas OR ere" --fuzzy_max_distance 1 --output_columns *,_score --command_version 3 --output_trace_log yes
184 {
185 "header": {
186 "return_code": 0,
187 "start_time": 0.0,
188 "elapsed_time": 0.0
189 },
190 "trace_log": {
191 "columns": [
192 {
193 "name": "depth"
194 },
195 {
196 "name": "sequence"
197 },
198 {
199 "name": "name"
200 },
201 {
202 "name": "value"
203 },
204 {
205 "name": "elapsed_time"
206 }
207 ],
208 "logs": [
209 [
210 1,
211 0,
212 "ii.select.input",
213 "Thas",
214 0
215 ],
216 [
217 1,
218 1,
219 "ii.select.operator",
220 "or",
221 1
222 ],
223 [
224 2,
225 0,
226 "ii.select.exact.n_hits",
227 0,
228 2
229 ],
230 [
231 2,
232 0,
233 "ii.select.fuzzy.input",
234 "Thas",
235 3
236 ],
237 [
238 2,
239 1,
240 "ii.select.fuzzy.input.actual",
241 "that",
242 4
243 ],
244 [
245 2,
246 2,
247 "ii.select.fuzzy.input.actual",
248 "this",
249 5
250 ],
251 [
252 2,
253 3,
254 "ii.select.fuzzy.n_hits",
255 2,
256 6
257 ],
258 [
259 1,
260 2,
261 "ii.select.n_hits",
262 2,
263 7
264 ],
265 [
266 1,
267 0,
268 "ii.select.input",
269 "ere",
270 8
271 ],
272 [
273 1,
274 1,
275 "ii.select.operator",
276 "or",
277 9
278 ],
279 [
280 2,
281 0,
282 "ii.select.exact.n_hits",
283 2,
284 10
285 ],
286 [
287 1,
288 2,
289 "ii.select.n_hits",
290 2,
291 11
292 ]
293 ]
294 },
295 "body": {
296 "n_hits": 2,
297 "columns": [
298 {
299 "name": "content",
300 "type": "ShortText"
301 },
302 {
303 "name": "_score",
304 "type": "Float"
305 }
306 ],
307 "records": [
308 [
309 "This is a pen",
310 1.0
311 ],
312 [
313 "That is a pen",
314 1.0
315 ]
316 ]
317 }
318 }