Debian Codegraph @

test/command/suite/select/function/in_values/with_index/value/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 ShortText
5
6 column_create Tags memos_tags COLUMN_INDEX Memos tags
7
8 load --table Memos
9 [
10 {"_key": "Groonga is fast", "tags": ["groonga", "full text search"]},
11 {"_key": "Mroonga is fast", "tags": ["mroonga", "mysql"]},
12 {"_key": "Rroonga is fast", "tags": ["rroonga", "ruby"]},
13 {"_key": "Droonga is fast", "tags": ["droonga", "ruby"]},
14 {"_key": "Groonga is a HTTP server", "tags": ["groonga", "http"]}
15 ]
16
17 select Memos \
18 --output_columns _key,tags \
19 --filter 'in_values(tags, "groonga", "mroonga", "droonga")' \
20 --sortby _id