| 1 |
table_create Terms TABLE_PAT_KEY ShortText --normalizer NormalizerNFKC121 --default_tokenizer TokenNgram |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Notes TABLE_NO_KEY |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Notes title COLUMN_SCALAR Text |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
load --table Notes |
| 8 |
[ |
| 9 |
{"title": "Hello Groonga"}, |
| 10 |
{"title": " "} |
| 11 |
] |
| 12 |
[[0,0.0,0.0],2] |
| 13 |
column_create Notes title_terms COLUMN_VECTOR Terms title |
| 14 |
[[0,0.0,0.0],true] |
| 15 |
select Notes --query _id:2 --output_columns title_terms |
| 16 |
[[0,0.0,0.0],[[[1],[["title_terms","Terms"]],[[]]]]] |
| 17 |
dump |
| 18 |
table_create Notes TABLE_NO_KEY |
| 19 |
column_create Notes title COLUMN_SCALAR Text |
| 20 |
|
| 21 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC121 |
| 22 |
|
| 23 |
column_create Notes title_terms COLUMN_VECTOR Terms title |
| 24 |
|
| 25 |
load --table Terms |
| 26 |
[ |
| 27 |
["_key"], |
| 28 |
["groonga"], |
| 29 |
["hello"] |
| 30 |
] |
| 31 |
|
| 32 |
load --table Notes |
| 33 |
[ |
| 34 |
["_id","title"], |
| 35 |
[1,"Hello Groonga"], |
| 36 |
[2," "] |
| 37 |
] |
| 38 |
column_create Terms notes_title COLUMN_INDEX|WITH_POSITION Notes title |
| 39 |
[[0,0.0,0.0],true] |
| 40 |
index_column_diff Terms notes_title |
| 41 |
[[0,0.0,0.0],[]] |