Debian Codegraph @

test/command/suite/select/adjuster/not_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 Tags
5
6 load --table Memos
7 [
8 {
9 "_key": "Groonga is fast",
10 "tags": [
11 "groonga"
12 ]
13 },
14 {
15 "_key": "Mroonga is also fast",
16 "tags": [
17 "mroonga",
18 "groonga"
19 ]
20 },
21 {
22 "_key": "Ruby is an object oriented script language",
23 "tags": [
24 "ruby"
25 ]
26 }
27 ]
28
29 column_create Tags memos_tags COLUMN_INDEX|WITH_WEIGHT Memos tags
30
31 select Memos \
32 --filter true \
33 --adjuster 'tags @ "groonga" * 10' \
34 --output_columns _key,_score