Debian Codegraph @

test/command/suite/select/drilldowns/keys/one/reference_weight_vector.test

raw
1 table_create Tags TABLE_PAT_KEY ShortText
2
3 table_create Memos TABLE_HASH_KEY ShortText
4 column_create Memos tags COLUMN_VECTOR|WITH_WEIGHT Tags
5 column_create Memos date COLUMN_SCALAR Time
6
7 load --table Memos
8 [
9 {"_key": "Groonga is fast!", "tags": {"full-text-search": 100}, "date": "2014-11-16 00:00:00"},
10 {"_key": "Mroonga is fast!", "tags": {"mysql": 100, "full-text-search": 80}, "date": "2014-11-16 00:00:00"},
11 {"_key": "Groonga sticker!", "tags": {"full-text-search": 100, "sticker": 10}, "date": "2014-11-16 00:00:00"},
12 {"_key": "Rroonga is fast!", "tags": {"full-text-search": 100, "ruby": 20}, "date": "2014-11-17 00:00:00"},
13 {"_key": "Groonga is good!", "tags": {"full-text-search": 100}, "date": "2014-11-17 00:00:00"}
14 ]
15
16 select Memos \
17 --drilldowns[tags].keys tags \
18 --drilldowns[tags].output_columns _key,_nsubrecs