Debian Codegraph @

test/command/suite/index_column_diff/key.expected

raw
1 table_create Data TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC100
4 [[0,0.0,0.0],true]
5 column_create Terms data_index COLUMN_INDEX|WITH_POSITION Data _key
6 [[0,0.0,0.0],true]
7 load --table Data
8 [
9 {"_key": "Hello World"},
10 {"_key": "Hello Groonga"}
11 ]
12 [[0,0.0,0.0],2]
13 truncate Terms.data_index
14 [[0,0.0,0.0],true]
15 load --table Data
16 [
17 {"_key": "Good-by World"},
18 {"_key": "Good-by Groonga"}
19 ]
20 [[0,0.0,0.0],2]
21 index_column_diff Terms data_index
22 [
23 [
24 0,
25 0.0,
26 0.0
27 ],
28 [
29 {
30 "token": {
31 "id": 1,
32 "value": "hello"
33 },
34 "remains": [],
35 "missings": [
36 {
37 "record_id": 1,
38 "position": 0
39 },
40 {
41 "record_id": 2,
42 "position": 0
43 }
44 ]
45 },
46 {
47 "token": {
48 "id": 2,
49 "value": "world"
50 },
51 "remains": [],
52 "missings": [
53 {
54 "record_id": 1,
55 "position": 1
56 }
57 ]
58 },
59 {
60 "token": {
61 "id": 3,
62 "value": "groonga"
63 },
64 "remains": [],
65 "missings": [
66 {
67 "record_id": 2,
68 "position": 1
69 }
70 ]
71 }
72 ]
73 ]