Debian Codegraph @

doc/source/example/reference/commands/index_column_diff/index_column.log

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