1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
table_create Terms TABLE_PAT_KEY ShortText \
--normalizer NormalizerNFKC121 \
--default_tokenizer TokenNgram
table_create Notes TABLE_NO_KEY
column_create Notes title COLUMN_SCALAR Text
load --table Notes
[
{"title": "Hello Groonga"},
{"title": " "}
]
column_create Notes title_terms COLUMN_VECTOR Terms title
select Notes \
--query _id:2 \
--output_columns title_terms
dump
column_create Terms notes_title COLUMN_INDEX|WITH_POSITION Notes title
index_column_diff Terms notes_title
|