1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#@require-apache-arrow
#$GRN_TOKEN_COLUMN_PARALLEL_TABLE_SIZE_THRESHOLD=1
#$GRN_TOKEN_COLUMN_PARALLEL_CHUNK_SIZE=2
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": " "},
{"title": "Hello Mroonga"},
{"title": "Hello Rroonga"}
]
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
|