Debian Codegraph @

test/command/suite/select/function/vector/vector_join/weight_reference.test

raw
1 plugin_register functions/vector
2
3 table_create Tags TABLE_PAT_KEY ShortText
4
5 table_create Memos TABLE_HASH_KEY ShortText
6 column_create Memos tags COLUMN_VECTOR|WITH_WEIGHT Tags
7
8 load --table Memos
9 [
10 {"_key": "Groonga", "tags": {"Groonga": 100}},
11 {"_key": "Rroonga", "tags": {"Groonga": 10, "Ruby": 90}},
12 {"_key": "Nothing"}
13 ]
14
15 select Memos \
16 --output_columns 'tags, vector_join(tags, "\n")'