Debian Codegraph @

test/command/suite/index_column_diff/missings/with_section/json.test

raw
1 #@require-input-type json
2
3 table_create Data TABLE_NO_KEY
4 column_create Data value1 COLUMN_SCALAR ShortText
5 column_create Data value2 COLUMN_SCALAR ShortText
6
7 table_create Terms TABLE_PAT_KEY ShortText \
8 --default_tokenizer TokenNgram \
9 --normalizer NormalizerNFKC100
10 column_create Terms data_values_index \
11 COLUMN_INDEX|WITH_POSITION|WITH_SECTION \
12 Data value1,value2
13
14 load --table Data
15 [
16 {"value1": "Hello World",
17 "value2": "Good-by World"},
18 {"value1": "Hello Groonga",
19 "value2": "Good-by Groonga"},
20 {"value1": "Hello World World",
21 "value2": "Good-by World World"},
22 {"value1": "Hello Groonga Groonga",
23 "value2": "Good-by Groonga Groonga"}
24 ]
25
26 truncate Terms.data_values_index
27
28 load --table Data
29 [
30 {"value1": "Morning World",
31 "value2": "Good night World"},
32 {"value1": "Morning Groonga",
33 "value2": "Good night Groonga"},
34 {"value1": "Morning World",
35 "value2": "Good night World"},
36 {"value1": "Morning Groonga",
37 "value2": "Good night Groonga"}
38 ]
39
40 index_column_diff Terms data_values_index