Debian Codegraph @

test/command/suite/select/drilldown/plain/reference_vector.test

raw
1 table_create Tags TABLE_HASH_KEY ShortText
2
3 table_create Memos TABLE_HASH_KEY ShortText
4 column_create Memos date COLUMN_SCALAR Time
5 column_create Memos tags COLUMN_VECTOR Tags
6
7 load --table Memos
8 [
9 {"_key": "Groonga is fast!", "tags": ["Groonga"]},
10 {"_key": "Mroonga is fast!", "tags": ["Mroonga", "Groonga"]},
11 {"_key": "Groonga sticker!", "tags": ["Groonga"]},
12 {"_key": "Rroonga is fast!", "tags": ["Rroonga", "Groonga"]},
13 {"_key": "Groonga is good!", "tags": ["Groonga"]}
14 ]
15
16 select Memos \
17 --limit 0 \
18 --output_columns _id \
19 --drilldown tags \
20 --drilldown_output_columns _key,_nsubrecs \
21 --drilldown_sortby -_nsubrecs,_id