Debian Codegraph @

test/command/suite/select/function/vector/vector_find/reference.test

raw
1 plugin_register functions/vector
2
3 table_create Tags TABLE_PAT_KEY ShortText
4
5 table_create Memos TABLE_HASH_KEY ShortText
6 column_create Memos tags COLUMN_VECTOR Tags
7
8 load --table Memos
9 [
10 {"_key": "Groonga", "tags": ["Groonga", "Full text search"]},
11 {"_key": "Rroonga", "tags": ["Groonga", "Full text search", "Ruby", "Library"]},
12 {"_key": "Nothing"}
13 ]
14
15 select Memos \
16 --output_columns 'tags, vector_find(tags, "Full text search")'