Debian Codegraph @

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